leafo/pgmoon

Socket pool getreusedtimes function

Closed this issue · 1 comments

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!

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