Re: writing & flushing C extensions

Поиск
Список
Период
Сортировка
От John P. Looney
Тема Re: writing & flushing C extensions
Дата
Msg-id 20011015173646.X1539@antefacto.com
обсуждение исходный текст
Ответ на writing & flushing C extensions  ("John P. Looney" <john@antefacto.com>)
Ответы Re: writing & flushing C extensions
Список pgsql-general
On Mon, Oct 15, 2001 at 11:02:10AM -0400, Tom Lane mentioned:
> >  DROP FUNCTION test();
> >  CREATE FUNCTION test() RETURNS text AS '/var/lib/pgsql/functions/test.so' LANGUAGE 'c';
> Actually, you can be pretty sure that it *won't* be flushed; once a
> backend has loaded a dynamic link library, the library stays loaded
> till the backend exits.  Dropping/recreating individual function
> definitions that point at the library makes no difference.
>
> I believe the only way to get an updated copy of a library without
> starting a new backend is to execute the LOAD command, which will
> unload and reload the library.

 Ah, excellent. Thanks.

 Just out of curiousity - does "LOAD" also flush other libraries that the
postgres extension is linked against ?

John

--
_______________________________________
John Looney             Chief Scientist
a n t e f a c t o     t: +353 1 8586004
www.antefacto.com     f: +353 1 8586014


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

Предыдущее
От: Gaurav Priyolkar
Дата:
Сообщение: Re: "Relation x does not exist" error when x does exist
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: VACUUM, 24/7 availability and 7.2