Re: [GENERAL] Postgresql init and cleanup module functions

2017-09-06 Thread Yan Pas
Sorry, replied only to direct sender, duplicating to both sender and mailing list *---* *MSG1:* Thanks you, that is what I was looking for! I was testing sample module and found it's behavior odd: 1. functions have few permissions, they even were not able to create file in "/tmp" directory. At lea

[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

[GENERAL] Postgresql init and cleanup module functions

2017-09-05 Thread Yan Pas
High! I'm writing C postgresql module with some psql-functions and global state. Do module API provide any init and cleanup functions? If yes then it would be fine to see them in "35.9. C-Language Functions" help page." Regards, Yan