Re: writing & flushing C extensions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "John P(dot) Looney" <john(at)antefacto(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: writing & flushing C extensions
Date: 2001-10-15 19:27:50
Message-ID: Pine.LNX.4.30.0110152109400.631-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-10-15 19:29:54 Re: lztext
Previous Message Keary Suska 2001-10-15 19:13:43 Re: inserting data into multiple tables