Skip to content
← Catalog atlas / pg_stat_database_conflicts

STATISTICS VIEW · Statistics view

pg_stat_database_conflicts

The pg_stat_database_conflicts view will contain one row per database, showing database-wide statistics about query cancels occurring due to conflicts with recovery on standby servers. This view will only contain information on standby servers, since conflicts do not occur on primary servers.

First seen PG 9.1Last seen PG 19Columns 8

Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗

Columns PostgreSQL 18

pg_stat_database_conflicts
COLUMNTYPEDESCRIPTION
datid oid OID of a database
datname name Name of this database
confl_tablespace bigint Number of queries in this database that have been canceled due to dropped tablespaces
confl_lock bigint Number of queries in this database that have been canceled due to lock timeouts
confl_snapshot bigint Number of queries in this database that have been canceled due to old snapshots
confl_bufferpin bigint Number of queries in this database that have been canceled due to pinned buffers
confl_deadlock bigint Number of queries in this database that have been canceled due to deadlocks
confl_active_logicalslot bigint Number of uses of logical slots in this database that have been canceled due to old snapshots or too low a wal_level on the primary

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.

Column evolution matrix

Hover a cell for the column type
PresentAdded / type or attribute changeRemoved
COLUMN9.09.19.29.39.49.59.610111213141516171819
datid
datname
confl_tablespace
confl_lock
confl_snapshot
confl_bufferpin
confl_deadlock
confl_active_logicalslot
stats_reset

9.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 majors

PostgreSQL 19 ← 18

+ stats_reset

PostgreSQL 16 ← 15

+ confl_active_logicalslot

PostgreSQL 14 ← 13

Catalog description updated

PostgreSQL 13 ← 12

Catalog description updated

PostgreSQL 12 ← 11

Catalog description updated

PostgreSQL 10 ← 9.6

Catalog description updated

PostgreSQL 9.6 ← 9.5

Catalog description updated

PostgreSQL 9.5 ← 9.4

Catalog description updated

PostgreSQL 9.4 ← 9.3

Catalog description updated

PostgreSQL 9.2 ← 9.1

Catalog description updated

PostgreSQL 9.1 ← 9.0Catalog added

+ datid+ datname+ confl_tablespace+ confl_lock+ confl_snapshot+ confl_bufferpin+ confl_deadlock

Compare 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.