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

From Dimitri Fontaine
Subject Re: C-function, don't load external dll file
Date
Msg-id m2r4nnngu4.fsf@2ndQuadrant.fr
Whole thread Raw
In response to C-function, don't load external dll file  (Przemek Lisowski <przemek@lisnet.info>)
Responses Re: C-function, don't load external dll file  (pl65 <przemek@lisnet.info>)
List pgsql-hackers
Hi,

Przemek Lisowski <przemek@lisnet.info> writes:
> HOW LOAD DLL AND USE MY EXTERNAL
> FUNCTION ? 

You need to declare it in SQL, maybe like this:
 create function public.transform(text) returns text as '$libdir/fservice', 'transform' language C;

See also the LOAD command and the CREATE EXTENSION documentation for how
to organise testing and shipping of your code.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] binary heap implementation
Next
From: Simon Riggs
Date:
Subject: Re: MySQL search query is not executing in Postgres DB