Re: problem with CREATE FUNCTION - Mailing list pgsql-general

From Richard Harvey Chapman
Subject Re: problem with CREATE FUNCTION
Date
Msg-id Pine.LNX.4.10.10009211416050.568-100000@smirk.3gfp.com
Whole thread Raw
In response to problem with CREATE FUNCTION  (Richard Harvey Chapman <hchapman@3gfp.com>)
Responses RE: problem with CREATE FUNCTION
List pgsql-general
Update:

The problem, I think, is with psql.  I never tried quitting and restarting
psql, but apparently that's required everytime you change a shared object
file.

"Urge to kill rising..."

R.

On Thu, 21 Sep 2000, Richard Harvey Chapman wrote:

> I'm trying to create a function for dynamically calling plsql functions,
> and I can't debug it due to a problem with postgres.
>
> My c function compiles fine.
>
> I execute:
>
> CREATE FUNCTION myfunc (text)
> RETURNS text
> AS '/myfuncs/myfunc.so'
> LANGUAGE 'C';
>
> and then a simple run of the function:
>
> SELECT myfunc('some text');
>
> It works.
>
> Now, change something in the function, recompile, and postgres continues
> to use the old code. I've tried dropping the function, and recreating it.
> I've tried renaming the shared object file.  It doesn't work.  Am I
> missing something?
>
> Although, all of this wouldn't be necessary if someone would tell me how
> to dynamically call functions in postgres (see my previous post regarding
> "dynamic sql..."
>
> Thanks,
>
> R.
>
>


pgsql-general by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: import CVS file
Next
From: Charles Tassell
Date:
Subject: Re: Re: sequences