pg_login_stat
Per-user and per-database successful and failed authentication counters.
pg_login_stat · Per-user and per-database successful and failed authentication counters.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101915 | pg_login_stat | pg_login_stat | 1.0 | STAT | C |
PostgreSQL · 15, 16, 17
Usage
Sources:
pg_login_stat Per-user and per-database successful and failed authentication counters.
Enablement
Merge pg_login_stat into the existing preload list, restart PostgreSQL, and then create pg_login_stat in each database that needs its SQL objects:
Core Workflow
The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.
Main Objects
The reviewed install surface includes these prominent objects:
| Object | Kind | Operational role |
|---|---|---|
pg_login_stats | VIEW | Inspection or query view created by the extension. |
pg_login_stat_reset | FUNCTION | Callable function from the reviewed install surface. |
Operations and Boundaries
- The verified PostgreSQL-major evidence covers 15, 16, 17; do not infer unlisted majors.
- Preloading
pg_login_statchanges cluster startup state; stage configuration and restart changes separately fromCREATE EXTENSION.