jackc / jackc/pgx

WaitCount stats

Open
#2,057 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14.3k
Forks
1.1k
Avg merge
6d 9h
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by reading pgx's stat() function and compare its exposed statistics with database/sql's waitCount statistic. Determine how an equivalent wait-count value could be obtained in pgx, and consider the work complete when the statistic is exposed or its supported access path is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.