PostgreSQL 19 ← 18Catalog added
STATISTICS VIEW · Statistics view
pg_stat_lock
The pg_stat_lock view will contain one row for each lock type, showing cluster-wide locks statistics.
Checked column by column against a PostgreSQL 19beta3 instance · Raw measurement record ↗
Columns PostgreSQL 19
pg_stat_lock| COLUMN | TYPE | DESCRIPTION |
|---|---|---|
locktype |
text |
Type of the lockable object. See pg_locks for details. |
waits |
bigint |
Number of times a lock of this type had to wait because of a conflicting lock. Only incremented when the lock was successfully acquired after waiting longer than deadlock_timeout. |
wait_time |
double precision |
Total time spent waiting for locks of this type, in milliseconds. Only incremented when the lock was successfully acquired after waiting longer than deadlock_timeout. |
fastpath_exceeded |
bigint |
Number of times a lock of this type could not be acquired via fast path because the fast path slot limit was exceeded. Increasing max_locks_per_transaction can reduce this number. |
stats_reset |
timestamp with time zone |
Time at which these statistics were last reset. |
Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.
Common system columns 0
System attributes PostgreSQL provides, normally not expanded by SELECT *. Kept separately so they are not mixed in with ordinary columns.
| Columns | Type | attnum |
|---|
Column evolution matrix
Hover a cell for the column type9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.
Evolution timeline
Changes between adjacent majorsCompare any two versions
Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.