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

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Przemek Lisowski <przemek(at)lisnet(dot)info>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: C-function, don't load external dll file
Date: 2012-11-21 14:58:11
Message-ID: m2r4nnngu4.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Przemek Lisowski <przemek(at)lisnet(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2012-11-21 15:27:25 Re: MySQL search query is not executing in Postgres DB
Previous Message Robert Haas 2012-11-21 14:46:11 Re: [PATCH] binary heap implementation