pg_stat_log
Track cumulative PostgreSQL log message statistics by backend, database, user, level, and SQLSTATE.
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_stat_log | 0.1 | STAT | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6040 | pg_stat_log | No | Yes | Yes | Yes | No | Yes | - |
| Related | pg_stat_statements pg_stat_monitor pg_stat_plans |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 0.1 | 1817161514 | pg_stat_log | - |
| RPM | PGDG | 0.1 | 1817161514 | pg_stat_log_$v | - |
| DEB | PGDG | 0.1 | 1817161514 | postgresql-$v-stat-log | - |
Install
You can install pg_stat_log directly. First, make sure the PGDG repository is added and enabled:
pig repo add pgdg -u # Add PGDG repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install pg_stat_log; # Install for current active PG version
pig ext install -y pg_stat_log -v 18 # PG 18
dnf install -y pg_stat_log_18 # PG 18
apt install -y postgresql-18-stat-log # PG 18
Preload:
shared_preload_libraries = '$libdir/pg_stat_log';
Create Extension:
CREATE EXTENSION pg_stat_log;
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.