From: | "John P(dot) Looney" <john(at)antefacto(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: writing & flushing C extensions |
Date: | 2001-10-15 16:36:46 |
Message-ID: | 20011015173646.X1539@antefacto.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2001-10-15 16:37:41 | Re: JDBC question: Which class is returned? |
Previous Message | Vivek Khera | 2001-10-15 16:08:40 | Re: loggin |