Re: Help with C-Function on Postgre

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Help with C-Function on Postgre
Date: 2009-04-02 15:57:33
Message-ID: 20090402155733.GK12225@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Apr 02, 2009 at 12:52:40PM +0200, Angelo Nicolosi wrote:
> I wanted to write some C-Function

Where is this code going to live? if it's going to be "inside" PG as a
function you can call from SQL you want something called SPI:

http://www.postgresql.org/docs/current/static/spi.html

If it's going to be "outside" PG and connect to the database to do its
work you want to use the client libraries:

http://www.postgresql.org/docs/current/static/libpq.html

Hope that helps!

--
Sam http://samason.me.uk/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David E. Wheeler 2009-04-02 16:10:34 Re: [HACKERS] string_to_array with empty input
Previous Message Tom Lane 2009-04-02 15:52:09 Re: cast needed - but where and why?