Auto-reload of dynamic libraries - Mailing list pgsql-hackers

From Gavin Sherry
Subject Auto-reload of dynamic libraries
Date
Msg-id Pine.LNX.4.21.0205042045040.27297-200000@linuxworld.com.au
Whole thread Raw
Responses Re: [PATCHES] Auto-reload of dynamic libraries
List pgsql-hackers
This small patch reloads dynamic libraries whose modification time is
greater than that at the time it was initially loaded. This means that
connections do not need to be reinitialised when a library is recompiled.

There is a problem with this, however: if dlopen()'ing the new patch
fails, the functions registered in the system against this patch will also
presumably break. This is, of course, what would happened if, a new
connection came in after the library was broken and it attempted to use
any of the functions in it.

Any ideas about ways around this? Need there be? Is this desired
behaviour?

Gavin

pgsql-hackers by date:

Previous
From: Matthew Kirkwood
Date:
Subject: Re: HEADS UP: Win32/OS2/BeOS native ports
Next
From: "Joel Burton"
Date:
Subject: Re: HEADS UP: Win32/OS2/BeOS native ports