pg_track_settings
Track settings changes
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_track_settings | 2.1.2 | STAT | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6260 | pg_track_settings | No | Yes | No | Yes | No | No | - |
| Related | pg_profile powa pg_track_optimizer pg_stat_monitor pg_stat_statements pg_store_plans pg_stat_plans |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 2.1.2 | 1817161514 | pg_track_settings | - |
| RPM | PGDG | 2.1.2 | 1817161514 | pg_track_settings_$v | - |
| DEB | PGDG | 2.1.2 | 1817161514 | postgresql-$v-pg-track-settings | - |
Install
You can install pg_track_settings directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
pg_track_settings records changes to PostgreSQL settings over time, tracking both global settings (pg_settings) and per-role/database overrides (pg_db_role_setting).
Taking Snapshots
Call periodically (via cron or PoWA) to capture current settings:
Viewing Settings at a Point in Time
Comparing Settings Between Two Times
Viewing Change History
Resetting History
Functions Summary
| Function | Description |
|---|---|
pg_track_settings_snapshot() | Capture current settings |
pg_track_settings(timestamptz) | All settings at a given time |
pg_track_settings_diff(timestamptz, timestamptz) | Settings that changed between two times |
pg_track_settings_log(text) | History of a specific setting |
pg_track_db_role_settings(timestamptz) | Overloaded settings at a given time |
pg_track_db_role_settings_diff(timestamptz, timestamptz) | Overloaded settings changes |
pg_track_db_role_settings_log(text) | History of a specific overloaded setting |
pg_track_settings_reset() | Clear all history |
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)