Re: writing & flushing C extensions - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: writing & flushing C extensions
Date
Msg-id Pine.LNX.4.30.0110152109400.631-100000@peter.localdomain
Whole thread Raw
In response to writing & flushing C extensions  ("John P. Looney" <john@antefacto.com>)
List pgsql-general
John P. Looney writes:

>  I'm trying to write a few functions in C for postgres. But, when I change
> some code, I'm never sure that it'll be flushed when I do a;
>
>  DROP FUNCTION test();
>  CREATE FUNCTION test() RETURNS text AS '/var/lib/pgsql/functions/test.so' LANGUAGE 'c';
>
>  Is there a way to make sure ? Even restarting postgres doesn't always
> work (or else my makefiles are broken...)

While in general this is platform-dependent, recreating the function at
least *could* work in many cases.  Restarting the server should work in
any case.  So possibly your build process needs adjustment.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


pgsql-general by date:

Previous
From: ÀîÁ¢ÐÂ
Date:
Subject:
Next
From: Tom Lane
Date:
Subject: Re: lztext