leafo / pgmoon

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

Socket pool getreusedtimes function #141

Closed eyounis closed 1 year ago

eyounis commented 1 year ago

I am using openresty and lapis with pgmoon. I have a strange issue with trying to determine if the connection is not "new" i.e is from pool

1- where can I find getreusedtimes function on the object? if not 2- Is there a workaround or another way to determine that the connection came from a pool?

Thanks!

eyounis commented 1 year ago

Found the answer, but here it is if someone else could use it: pg.sock\getreusedtimes!