postgresql_16:4.13.2.17 pg_stat_database_conflicts
PostgreSQL 16 > Server Administration > Monitoring Database Activity > The Cumulative Statistics System > 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.
| Column Type Description | | --- | | 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 (see guc-wal-level) on the primary |