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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Plugins redux (was Re: [PATCHES] PL instrumentation
Дата
Msg-id 3022.1155255420@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Plugins redux (was Re: [PATCHES] PL instrumentation  ("korryd@enterprisedb.com" <korryd@enterprisedb.com>)
Список pgsql-hackers
"korryd@enterprisedb.com" <korryd@enterprisedb.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Coding style for emacs
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: 8.2 features status