Skip site navigation (1) Skip section navigation (2)

Re: Creating server-side functions: one simple error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ruslan A Dautkhanov <rusland(at)scn(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Creating server-side functions: one simple error
Date: 2002-10-09 13:54:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Ruslan A Dautkhanov <rusland(at)scn(dot)ru> writes:
> I have to create my own function in C lanuage, which
> will use SPI. The problem that when I had done all things,
> PostgreSQL says:
>     isbs=# select pgf1test('123');
>     ERROR:  Can't find function pgf1test in file /usr/local/pgsql/lib/

But it got past the CREATE FUNCTION command without complaint?  That's
odd, because CREATE FUNCTION should make the same check.

Does the behavior change if you start a fresh session?  If so, see
the LOAD command, which you need to use (or start a fresh session)
after any change of the shared library file.

			regards, tom lane

In response to


pgsql-bugs by date

Next:From: Jean-Luc LachanceDate: 2002-10-09 15:33:06
Subject: psql does not invoke pager on \h *
Previous:From: Ruslan A DautkhanovDate: 2002-10-09 11:39:38
Subject: Creating server-side functions: one simple error

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group