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: (view raw, whole thread or download thread mbox)
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


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


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-2017 The PostgreSQL Global Development Group