Re: C-function, don't load external dll file - Mailing list pgsql-hackers

From pl65
Subject Re: C-function, don't load external dll file
Date
Msg-id 1353576388905-5733197.post@n5.nabble.com
Whole thread Raw
In response to Re: C-function, don't load external dll file  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List 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 by date:

Previous
From: "Etsuro Fujita"
Date:
Subject: Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY
Next
From: Amit Kapila
Date:
Subject: Re: Switching timeline over streaming replication