leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
397 stars 93 forks source link

Pool violation after v1.13 #142

Open eyounis opened 1 year ago

eyounis commented 1 year ago

Based on my testing, I think pgmoon now violates the pool separation since v.1.14 when the decision was made to hold on to the socket object after disconnect. When making subsequent connection regardless of the pool name provided, you get the same object.

eyounis commented 1 year ago

after a lot of digging through the code, I found out the issue: pool: @config.pool_name it's now expecting pool_name setting instead of pool, which is wrong per the documentation

eyounis commented 1 year ago

additionally I am getting "missing database for connect" on subsequent connections that doesn't happen in v1.13