Re: C Function problems

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C Function problems
Дата
Msg-id 25498.1264955434@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C Function problems  (Kent Scott <kscott@logicalsi.com>)
Список pgsql-novice
Kent Scott <kscott@logicalsi.com> writes:
> I have trouble creating C functions especially when using some C native code
> For example, the following code works:

> [ examples differing only in the addition of a local variable ]

> I get the following error when trying to create the function :
> ERROR: could not find function "Create_Future_Records" in file
> "/usr/lib/postgresql/8.4/lib/shared.so"

It's really hard to believe that those two examples work differently.
I think more likely you're up against some procedural error that you
are misinterpreting to suggest that adding an unused local variable
would really make a difference.

One thought that comes to mind is that as of recent releases, the
only way to load a modified .so into the backend is to start a fresh
session.  So if you recompiled and then tried to do a CREATE FUNCTION
in a backend that had already loaded the previous version of the .so,
you could get an error like that.  Any chance it's that?

            regards, tom lane

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

Предыдущее
От: Susan M Farley
Дата:
Сообщение: Error installing pljava
Следующее
От: "Machiel Richards"
Дата:
Сообщение: Novice to postgres