{"Entry":{"collection":"metric","key":"pg_stat_lock-waits","name":"pg_stat_lock.waits","aliases":["waits","pg_stat_lock"],"metadata":{"aliases":["waits","pg_stat_lock"],"category":"pg_stat_lock","content_hash":"34f2de961231d8f5df498c631f33f8833f8bf5402e51043aa4626f721d3a7bc3","imported_at":"2026-09-30T00:40:45.750479+08:00","name":"pg_stat_lock.waits","name_zh":"","slug":"pg_stat_lock-waits","summary":"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."}},"Definition":{"Collection":"metric","Key":"pg_stat_lock-waits","SourceDatabase":"center","Version":"20","SourceTable":"statistics_metric","SourceKey":"pg_stat_lock-waits","SourceRevision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41","Facts":{"comparison_data":{"field":"waits","sql_type":"bigint","units_mentioned":[],"view":"pg_stat_lock"},"comparison_hash":"ad76c115d3adc48005c80035ea3ea3acbe6a6ed6449a0209f4afd8965f549e52","description":["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."],"documented":true,"facts":[{"label":"View","value":"pg_stat_lock"},{"label":"Field","value":"waits"},{"label":"SQL type","value":"bigint"},{"label":"Units named in the field definition","value":"Not specified"},{"label":"Reset observation","value":"Time at which these statistics were last reset."}],"field":"waits","manual_html":"","manual_path":"/docs/devel/monitoring-stats.html","related":[{"label":"pg_stat_lock columns","url":"/wiki/catalog/pg_stat_lock/?v=20"},{"label":"Statistics collection and reset functions","url":"/docs/devel/monitoring-stats.html"}],"release":{"channel":"devel","label":"20devel","major":"20","ref":"https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2","revision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"},"sections":[{"paragraphs":["The pg_stat_lock view will contain one row for each lock type, showing cluster-wide locks statistics."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT waits FROM pg_catalog.pg_stat_lock;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"signature":"SELECT waits FROM pg_catalog.pg_stat_lock;","source_only":false,"sources":[{"label":"PostgreSQL 20 English manual","path":"monitoring-stats.html","sha256":"dfc27a108b70bdf88f310801ae3db011a8f608befd927722e5f3e9bdcc070251","url":"/docs/devel/monitoring-stats.html#PG-STAT-LOCK-VIEW"}],"sql_type":"bigint","tables":[],"units_mentioned":[],"view":"pg_stat_lock"},"ManualEvidence":{"manual_path":"/docs/devel/monitoring-stats.html","release":{"channel":"devel","label":"20devel","major":"20","ref":"https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2","revision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"},"sources":[{"label":"PostgreSQL 20 English manual","path":"monitoring-stats.html","sha256":"dfc27a108b70bdf88f310801ae3db011a8f608befd927722e5f3e9bdcc070251","url":"/docs/devel/monitoring-stats.html#PG-STAT-LOCK-VIEW"}]},"MeasuredEvidence":{}},"Text":{"Collection":"metric","Key":"pg_stat_lock-waits","SourceDatabase":"center","Version":"20","Locale":"en","Title":"pg_stat_lock.waits","Summary":"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.","BodyHTML":"\u003cp\u003eNumber 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.\u003c/p\u003e","SourceRevision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41","ContentHash":"d2610e2eb2bc220acf76d63e4b81fe13f17ded7241768d525b438f177c8bc684","Payload":{"description":["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."],"manual_html":"","related":[{"label":"pg_stat_lock columns","url":"/wiki/catalog/pg_stat_lock/?v=20"},{"label":"Statistics collection and reset functions","url":"/docs/devel/monitoring-stats.html"}],"sections":[{"paragraphs":["The pg_stat_lock view will contain one row for each lock type, showing cluster-wide locks statistics."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT waits FROM pg_catalog.pg_stat_lock;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
