Re: execute query from inside C function

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: James Harper <james(dot)harper(at)bendigoit(dot)com(dot)au>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: execute query from inside C function
Date: 2014-02-25 12:34:28
Message-ID: CAFj8pRBkT5pYMVwVHzgDzJZLCmZZCKcdRMvA_wouEUvC6sbqpQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

you should to use a SPI API

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

http://www.postgresql.org/docs/9.3/static/spi-spi-exec.html

Regards

Pavel Stehule

2014-02-25 13:22 GMT+01:00 James Harper <james(dot)harper(at)bendigoit(dot)com(dot)au>:

> I've googled the docs but I can't seem to make a link as to how to execute
> database queries from inside a C function. I'm used to having a PGconn and
> using the API around that, but how do I do that from inside a C function
> (and a bit later on, a language handler?)
>
> Thanks
>
> James
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Harper 2014-02-25 12:36:46 Re: execute query from inside C function
Previous Message James Harper 2014-02-25 12:22:56 execute query from inside C function