Skip site navigation (1) Skip section navigation (2)

Auto-reload of dynamic libraries

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: pgsql-patches(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Auto-reload of dynamic libraries
Date: 2002-05-04 11:05:35
Message-ID: Pine.LNX.4.21.0205042045040.27297-200000@linuxworld.com.au (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
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

Attachment: dfmgr.c.diff
Description: text/plain (2.2 KB)

Responses

pgsql-hackers by date

Next:From: Joel BurtonDate: 2002-05-04 13:33:49
Subject: Re: HEADS UP: Win32/OS2/BeOS native ports
Previous:From: Matthew KirkwoodDate: 2002-05-04 09:59:20
Subject: Re: HEADS UP: Win32/OS2/BeOS native ports

pgsql-patches by date

Next:From: Tom LaneDate: 2002-05-04 15:36:45
Subject: Re: [PATCHES] Auto-reload of dynamic libraries
Previous:From: Neil ConwayDate: 2002-05-03 16:12:41
Subject: fix for typo in docs

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group