Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu
Date: 2002-02-12 14:43:26
Message-ID: 21223.1013525006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at> writes:
> One thing to really watch out for is that old style extensions,
> that only need a few functions from a standard library will load
> more efficiently with RTLD_LAZY.

I thought we had disposed of that argument. The issue here is not a
marginal efficiency gain, it is that an unresolved symbol will lead
to a backend crash (== database-wide restart) unless it is detected
at dlopen time. As a wise man once said, "I can make it arbitrarily
fast ... if it doesn't have to work."

> Next thing to watch out for is, that RTLD_NOW will probably not load
> a shared lib, that was not linked with a "no entry" flag.

Say again?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ola Sundell 2002-02-12 14:53:49 feature request START WITH ... CONNECT BY
Previous Message Marc G. Fournier 2002-02-12 13:24:45 Re: Optimizer(?) off by factor of 3 ... ?