Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, David Terrell <dbt(at)meat(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Brent Verner <brent(at)rcfile(dot)org>, Murray Prior Hobbs <murray(at)efone(dot)com>, Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
Date: 2002-01-21 16:54:44
Message-ID: 200201211654.g0LGsiZ16622@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > Interesting LAZY has better efficiency. Seems we should just keep LAZY
> > as our default for future releases and tell people if they link to bad
> > object files, they should expect trouble.
>
> In practice, we load object files only if we call the function, so symbol
> resolution happens either way briefly after loading. RTLD_NOW includes
> some overhead because it checks symbols that we might not end up needing,
> but for the typical PostgreSQL extension module, that should really not
> matter.

OK, I was just throwing out the point in case it was significant.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2002-01-21 16:56:54 Re: [HACKERS] PostgreSQL Licence: GNU/GPL
Previous Message Bruce Momjian 2002-01-21 16:53:32 Re: [HACKERS] PostgreSQL Licence: GNU/GPL

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-01-21 17:03:24 Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
Previous Message Peter Eisentraut 2002-01-21 16:50:26 Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu