Re: Creating server-side functions: one simple error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating server-side functions: one simple error
Дата
Msg-id 19867.1034171679@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Creating server-side functions: one simple error  (Ruslan A Dautkhanov <rusland@scn.ru>)
Список pgsql-bugs
Ruslan A Dautkhanov <rusland@scn.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/pgf1test.so

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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Ruslan A Dautkhanov
Дата:
Сообщение: Creating server-side functions: one simple error
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: psql does not invoke pager on \h *