pg_stat_errors
Cluster-wide error-class counters with a bounded sample of recent errors.
pg_stat_errors · Cluster-wide error-class counters with a bounded sample of recent errors.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101931 | pg_stat_errors | pg_stat_errors | 1.2 | STAT | PostgreSQL | C |
Usage
Sources:
pg_stat_errors Cluster-wide error-class counters with a bounded sample of recent errors.
Enablement
Merge pg_stat_errors into the existing preload list, restart PostgreSQL, and then create pg_stat_errors 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_stat_errors_total_errors | FUNCTION | Callable function from the reviewed install surface. |
pg_stat_errors_info | FUNCTION | Callable function from the reviewed install surface. |
pg_stat_errors_last | FUNCTION | Callable function from the reviewed install surface. |
dba_stat_errors | VIEW | Inspection or query view created by the extension. |
dba_stat_errors_last | VIEW | Inspection or query view created by the extension. |
pg_stat_errors_reset | FUNCTION | Callable function from the reviewed install surface. |
Operations and Boundaries
- Preloading
pg_stat_errorschanges cluster startup state; stage configuration and restart changes separately fromCREATE EXTENSION.