Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
Date
Msg-id 5611.1011563025@sss.pgh.pa.us
Whole thread Raw
In response to Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> Unless I hear a credible counter-argument, I am going to change
>> RTLD_LAZY to RTLD_NOW in src/backend/port/dynloader/linux.h.  I have
>> tested that and it produces a clean error with no backend crash.

> RTLD_LAZY allows you to load shared library modules that contain circular
> references.

Does that not work with RTLD_NOW?  I should think it would.  In any
case, I'm doubtful that we care.

> I really don't think this is a good change to make now, as we don't know
> how well all of this is supported, and the failure scenario is annoying
> but not really that harmful.

A database restart is always very bad news in my mind.  You might be
right that it's too risky to make such a change now for 7.2, but I still
absolutely want to do it for 7.3.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu
Next
From: Tom Lane
Date:
Subject: Re: pltlc and pltlcu problems