Hello!
2012/9/5 Wayne <moonb...@gmail.com>:
> 春哥好
> 请问openresty啥时候会有对postgres的支持呢?望眼欲穿啊:)
其实已经有很长时间的支持了。
ngx_openresty 默认已经包含了 ngx_postgres 模块,但默认并没有启用,因为依赖 PostgreSQL 提供的
libpq 库。如果你的系统中已经安装有 libpq 库,可以在构建 ngx_openresty 时,向 ./configure 传递选项
--with-http_postgres_module 选项以启用 ngx_postgres 模块,更多细节可以参见
http://openresty.org/#PostgresNginxModule
当然,基于 ngx_lua cosocket 的全新的 lua-resty-postgresql 库将会于今年晚些时候着手开发。就像
lua-resty-mysql 库之于 ngx_drizzle 模块 :)
Best regards,
-agentzh