ngx_postgres is an upstream module that allows Nginx to communicate directly with PostgreSQL database.
Response is generated in RDS format, so it's compatible with Rds Json Nginx Module and Drizzle Nginx Module modules.
This module is not enabled by default, and you need to specify the --with-http_postgres_module
option while building OpenResty. This Nginx module requires libpq to be installed into your system.
Project page: http://github.com/FRiCKLE/ngx_postgres