Search Postgresql Archives

Re: Accessiing database from inside of postgresql C function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yan Pas <yanp.bugz@xxxxxxxxx> writes:
> I'm writing C postgresql module with postgresql functions and want to
> access the tables from inside (SELECT mostly and maybe INSERT). Is it
> possible? If yes what API can I use except classic TCP connection (not sure
> if it's even legal)?

Recommended way is to use SPI:
https://www.postgresql.org/docs/current/static/spi.html

Aside from that documentation, there are lots of examples to study in the
core code and contrib.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux