pgx
pgx copied to clipboard
WaitCount stats
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.
https://pkg.go.dev/github.com/jackc/pgx/[email protected]/pgxpool#Stat.EmptyAcquireCount is how many acquires had to wait.