Documentation
¶
Index ¶
- func LongQueryCount(ctx context.Context, pool *pgxpool.Pool, minSeconds int) (int, error)
- func MaxConnections(ctx context.Context, pool *pgxpool.Pool) (int, error)
- func Pool(ctx context.Context, dsn string) (*pgxpool.Pool, error)
- func StaleCount(ctx context.Context, pool *pgxpool.Pool, maxAgeSeconds int) (int, error)
- type ConnectionStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LongQueryCount ¶ added in v0.6.4
LongQueryCount returns backends in state 'active' whose current query has been running longer than minSeconds (based on query_start). Excludes this session (pg_backend_pid).
func MaxConnections ¶
MaxConnections returns the server's max_connections setting.
Types ¶
Click to show internal directories.
Click to hide internal directories.