Dynamic loading of C functions

Поиск
Список
Период
Сортировка
Искать
От
Jasbinder Bali
Тема
Dynamic loading of C functions
Дата
Msg-id
a47902760606201254u6ea102bev23acc7d328542004@mail.gmail.com
Список
Дерево обсуждения
Dynamic loading of C functions "Jasbinder Bali" <jsbali@gmail.com>
Re: Dynamic loading of C functions Bill Moran <wmoran@collaborativefusion.com>
Re: Dynamic loading of C functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Dynamic loading of C functions Bill Moran <wmoran@collaborativefusion.com>
Re: Dynamic loading of C functions "Jasbinder Bali" <jsbali@gmail.com>
Re: Dynamic loading of C functions Martijn van Oosterhout <kleptog@svana.org>
Re: Dynamic loading of C functions "Jasbinder Bali" <jsbali@gmail.com>
Re: Dynamic loading of C functions elein <elein@varlena.com>
Re: Dynamic loading of C functions "Erin Sheldon" <erin.sheldon@gmail.com>
Re: Dynamic loading of C functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Dynamic loading of C functions "Jasbinder Bali" <jsbali@gmail.com>
I've written a function in C, compiled it and trying to use the same function in one of my postgres functions like this:

CREATE FUNCTION add_one(integer) RETURNS integer
     AS '/usr/include/pgsql/server/test_func, 'add_one'
     LANGUAGE C STRICT

test_func is the name of my object file and add_one is the name of
the function i want to call from test_func.c  C file.

I get the follwing error
ERROR:  could not access file "/usr/include/pgsql/server/test_func": No such file or directory

/usr/include/pgsql/server/ is exactly the path where test_func object file resides.
Don't know why isn't postgres able to find it there.

Any kind of help would be appreciated.

~Jas
В списке pgsql-general по дате отправления
От: Aaron Koning
Дата:
Сообщение: Re: Exporting data from view
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Exporting data from view
FAQ