Nginx with Postgresql

Ranier Vf ranier.vf at
Wed May 24 19:01:25 UTC 2017

Anybody knows what is correct place to call Postgresql PQconnectdb?
I writing a module with Postgresql integration and get segmentation fault,
when calls PQfinish and PQclear.

Is init_master?

What module place is correct to:
1. create module vars to pgres connection?
2. make connection with postgresql (PQconnectdb)?
3. handle cleanup with PQfinish?

Best regards,

Ranier Vilela

de vírus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list