Re: [INTERFACES] The persistance of C functions

From: "Bryan White" <bryan(at)arcamax(dot)com>
To: <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] The persistance of C functions
Date: 2000-02-09 23:42:16
Message-ID: 011d01bf7357$4c52b160$2dd260d1@arcamax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

> On 09-Feb-00 Bryan White wrote:
> > If I use CREATE FUNCTION for a C function in a .so file and then use the
> > function and then change and recompile the function, what steps are
needed
> > to see the change?
> >
> > As I see it the options are:
> > A: do nothing, the function is reloaded on every invocation.
> > B: Reopen the connection to the backend
> > C: Restart the postmaster
> >
> > I suspect B is correct but I would like to hear someone confirm it.
>
> I don't know about A or B, but C definitely works :-). If it's
> practical, I sometimes use DROP FUNCTION/CREATE FUNCTION, but I don't
> think this is practical when you're using this function (or set of
> functions) to implement a new data type.

Thanks, I have come to the conclusion that B is sufficient based on trial
and error.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alfred Perlstein 2000-02-09 23:44:22 Re: [HACKERS] TODO item
Previous Message Bruce Momjian 2000-02-09 23:28:10 Re: [HACKERS] TODO item

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bryan White 2000-02-09 23:45:37 How to get remote ip address is stored proceedure
Previous Message Ken J. Wright 2000-02-09 23:17:31 Re: [INTERFACES] jdbc question