pgx icon indicating copy to clipboard operation
pgx copied to clipboard

WaitCount stats

Open 7vikassharma opened this issue 1 year ago • 1 comments

In the database/sql library, we have the waitCount statistic to get the total number of connections waited for. How can I obtain this statistic in pgx? In the stat() function of pgx, there is no function that returns the waitCount.

7vikassharma avatar Jun 24 '24 09:06 7vikassharma

https://pkg.go.dev/github.com/jackc/pgx/[email protected]/pgxpool#Stat.EmptyAcquireCount is how many acquires had to wait.

jackc avatar Jun 24 '24 13:06 jackc