Re: C-function, don't load external dll file

Поиск
Список
Период
Сортировка
От pl65
Тема Re: C-function, don't load external dll file
Дата
Msg-id 1353576388905-5733197.post@n5.nabble.com
обсуждение
Ответ на Re: C-function, don't load external dll file  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
Dimitri Fontaine-7 wrote
You need to declare it in SQL, maybe like this: create function public.transform(text) returns text as '$libdir/fservice', 'transform' language C;
I'm afraid that I won't do it becouse fservice.dll is writen in c++, but dll file which contains function transform (this function export to Postgresql) was wrote in ANSI C. Secondly, LOAD function in posttgresql libraries that are use of my all dependent dll? I think i should use: LOAD 'fservice.dll' But I don't know which dll load to use function or makros which called from windows.h (HINSTANCE, LoadLibray(), GetProcAddress())?

View this message in context: Re: C-function, don't load external dll file
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

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