Re: Plugins redux (was Re: [PATCHES] PL instrumentation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "korryd(at)enterprisedb(dot)com" <korryd(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Plugins redux (was Re: [PATCHES] PL instrumentation
Date: 2006-08-11 00:17:00
Message-ID: 3022.1155255420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"korryd(at)enterprisedb(dot)com" <korryd(at)enterprisedb(dot)com> writes:
> It seems a little dangerous for a dynamic library to register an
> on_proc_exit() handler. If we ever add support for unloading a dynamic
> library, we'll have to add an unregister_on_proc_exit() too.

True, but there might be other uses for such a thing anyway. I can't
see any objection to adding that routine.

> In fact, it looks _PG_fini() is only called if you *reload* a library,
> unless I'm missing something somwhere.

Sure, because we don't currently have a routine for unloading a library
without immediately reloading it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2006-08-11 00:33:35 Re: 8.2 features status
Previous Message Tom Lane 2006-08-11 00:01:55 Re: Coding style for emacs

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-08-11 03:07:10 Re: Values list-of-targetlists patch for comments (was Re:
Previous Message Tom Lane 2006-08-11 00:01:55 Re: Coding style for emacs