Re: [GENERAL] Accessiing database from inside of postgresql C function

2017-09-05 Thread Tom Lane
Yan Pas 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

[GENERAL] Accessiing database from inside of postgresql C function

2017-09-05 Thread Yan Pas
High! 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)? Kind Regards, Yan