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 |
<blockquote class="quote dark-border-color" style="border-left:2px solid #CCCCCC;padding:0 1em"><div class="quote light-border-color"><divclass="quote-author" style="font-weight: bold;">Dimitri Fontaine-7 wrote</div><div class="quote-message">You need to declare it in SQL, maybe like this: create function public.transform(text) returns textas '$libdir/fservice', 'transform' language C; </div></div></blockquote><b>I'm afraid that I won't do it becouse fservice.dllis writen in c++, but dll file which contains function transform (this function export to Postgresql) was wrotein ANSI C. </b> Secondly, LOAD function in posttgresql libraries that are use of my all dependent dll? I think i shoulduse: LOAD 'fservice.dll' But I don't know which dll load to use function or makros which called from windows.h (HINSTANCE,LoadLibray(), GetProcAddress())? <br /><hr align="left" width="300" /> View this message in context: <a href="http://postgresql.1045698.n5.nabble.com/C-function-don-t-load-external-dll-file-tp5732931p5733197.html">Re: C-function,don't load external dll file</a><br /> Sent from the <a href="http://postgresql.1045698.n5.nabble.com/PostgreSQL-hackers-f1928748.html">PostgreSQL- hackers mailing list archive</a>at Nabble.com.<br />
В списке pgsql-hackers по дате отправления: