Re: Help with C-Function on Postgre - Mailing list pgsql-general

From Sam Mason
Subject Re: Help with C-Function on Postgre
Date
Msg-id 20090402155733.GK12225@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Help with C-Function on Postgre  (Angelo Nicolosi <amenuor@hotmail.com>)
List 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/

pgsql-general by date:

Previous
From: linnewbie
Date:
Subject: Re: Posgres Adding braces at beginning and end of text (html) content
Next
From: "David E. Wheeler"
Date:
Subject: Re: [HACKERS] string_to_array with empty input