lua-resty-postgres
lua-resty-postgres copied to clipboard
Nonblocking Lua PostgreSQL driver library for ngx_lua
In the PostgreSQL server's response to the initial login packet, it includes a field indicating what kind of authentication the server would like the client to use. We were not...
thank you !
luarocks install lua-resty-postgres ``` .... local db = pgsql:new() db:set_timeout(3000) local ok,err = db:connect({database= config.pgsql.database , host = config.pgsql.host, port = config.pgsql.port, user = config.pgsql.user, password = config.pgsql.password,compact = false...
Even though md5 is configured on pgpool, I am unable to connect. It looks like resty.postgres is not sending md5 auth type to pgpool. Here is what I see on...
Even with hardcoded env variables, the ok variable returns nil and the err variable returns "not initialized". Firewall disabled, and can successfully access the postgresql database with psql from the...