On 1/26/2015 11:54 AM, Spiros Ioannou wrote:
> But these need a connection to the postgresql backend. It seems an
> overkill for postgresql to connect to itself, I would prefer something
> more optimal. It seems for now that reading libpq's source code is the
> only way to go.
>
you use the SPI functions to execute queries from within a C function.
http://www.postgresql.org/docs/current/static/spi.html
--
john r pierce 37N 122W
somewhere on the middle of the left coast