{"Entry":{"collection":"waitevent","key":"timeout/WalSummarizerError","name":"WalSummarizerError","aliases":["WalSummarizerError"],"metadata":{"aliases":["WalSummarizerError"],"changed_in":[],"changes":[{"from":"16","moved":null,"renamed":null,"reworded":null,"status":"added","to":"17"}],"content_hash":"0c4535af56ccf48efd8ba85e419ea263c73f3bf35fbdc5caaf64a9fe3bf57dc3","dossier":{"actions":{"en":["Identify the GUC or function that owns the timer.","Compare productive work with time spent delayed.","Adjust the policy only after checking the CPU, I/O, and durability pressure it was designed to control."],"zh":["确认拥有该计时器的 GUC 或函数。","比较有效工作量与延迟时间。","先检查它原本要控制的 CPU、I/O 与持久性压力，再调整策略。"]},"diagnostic_sql":[{"id":"sessions","min_version":"13","sql":"SELECT pid, backend_type, usename, datname, application_name,\n       state, now() - query_start AS query_age,\n       now() - xact_start AS xact_age,\n       wait_event_type, wait_event,\n       pg_blocking_pids(pid) AS blocking_pids,\n       left(query, 160) AS query\nFROM pg_stat_activity\nWHERE wait_event_type = 'Timeout'\n  AND wait_event = 'WalSummarizerError'\nORDER BY query_age DESC NULLS LAST;","title":"Sessions waiting on Timeout/WalSummarizerError","title_zh":"正在等待 Timeout/WalSummarizerError 的会话"},{"id":"cohort","min_version":"13","sql":"SELECT wait_event, count(*) AS waiting_sessions,\n       count(*) FILTER (WHERE state = 'active') AS active_waiters,\n       max(now() - query_start) AS oldest_query\nFROM pg_stat_activity\nWHERE wait_event_type = 'Timeout'\nGROUP BY wait_event\nORDER BY waiting_sessions DESC, wait_event;","title":"Current Timeout cohort","title_zh":"当前 Timeout 等待分布"},{"id":"lock_objects","min_version":"13","sql":"SELECT a.pid, l.locktype, l.mode, l.granted, l.fastpath,\n       d.datname, n.nspname, c.relname,\n       l.page, l.tuple, l.virtualxid, l.transactionid,\n       l.classid, l.objid, l.objsubid\nFROM pg_stat_activity AS a\nLEFT JOIN pg_locks AS l ON l.pid = a.pid\nLEFT JOIN pg_database AS d ON d.oid = l.database\nLEFT JOIN pg_class AS c\n  ON c.oid = l.relation\n AND l.database = (\n       SELECT oid FROM pg_database WHERE datname = current_database()\n     )\nLEFT JOIN pg_namespace AS n ON n.oid = c.relnamespace\nWHERE a.wait_event_type = 'Timeout'\n  AND a.wait_event = 'WalSummarizerError'\nORDER BY a.pid, l.granted, l.locktype, l.mode;","title":"Lock and relation context for these sessions","title_zh":"这些会话的锁与关系上下文"}],"emission":{"status":"active","verified_release":"18.6"},"gucs":["wal_buffers","synchronous_commit"],"incident_pattern":{"en":"","zh":""},"mechanism":{"en":"`WAIT_EVENT_WAL_SUMMARIZER_ERROR` at `src/backend/postmaster/walsummarizer.c:337` is the grep-verified reporting path. The public identity/resource is mapped at `src/backend/utils/activity/wait_event_names.txt:184`. The instrumented operation is: Waiting after a WAL summarizer error. The WalSummarizerError path deliberately waits on a timer, retry interval, throttle, or safety backoff. The latch timeout expires before work is reconsidered.","zh":"`WAIT_EVENT_WAL_SUMMARIZER_ERROR` 位于 `src/backend/postmaster/walsummarizer.c:337`，是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/utils/activity/wait_event_names.txt:184`。探针覆盖的操作是：WAL summarizer 出错后等待。WalSummarizerError 路径有意等待计时器、重试间隔、节流或安全退避；latch 超时后才重新评估工作。"},"metrics":["waiting_sessions","wait_event_share","wal_bytes","wal_write_time"],"normal":{"en":"The wait is normal when the configured policy is intentional and useful work advances at the expected rate.","zh":"当配置策略是有意的，而且有效工作按预期速率推进时，这项等待正常。"},"official_descriptions":{"17":"Waiting after a WAL summarizer error","18":"Waiting after a WAL summarizer error"},"record_kind":"event","source_locations":[{"commit":"724edf9bde9d356724ad384a2e196edc3c9f80f7","excerpt":"WAIT_EVENT_WAL_SUMMARIZER_ERROR);","grep_pattern":"WAIT_EVENT_WAL_SUMMARIZER_ERROR","grep_verified":true,"kind":"trigger","line":337,"major":18,"path":"src/backend/postmaster/walsummarizer.c","status":"live_trigger","symbol":"WAIT_EVENT_WAL_SUMMARIZER_ERROR","tag":"REL_18_6","url":"https://github.com/postgres/postgres/blob/REL_18_6/src/backend/postmaster/walsummarizer.c#L337","version":"18.6"},{"commit":"724edf9bde9d356724ad384a2e196edc3c9f80f7","excerpt":"WAL_SUMMARIZER_ERROR\t\"Waiting after a WAL summarizer error.\"","grep_pattern":"WAL_SUMMARIZER_ERROR","grep_verified":true,"kind":"catalog_definition","line":184,"major":18,"path":"src/backend/utils/activity/wait_event_names.txt","status":"live_trigger","symbol":"WAL_SUMMARIZER_ERROR","tag":"REL_18_6","url":"https://github.com/postgres/postgres/blob/REL_18_6/src/backend/utils/activity/wait_event_names.txt#L184","version":"18.6"}],"source_status":"live_trigger","trouble":{"en":"Investigate when the policy causes missed maintenance, recovery, backup, or latency objectives, or when a spin delay persists.","zh":"策略导致维护、恢复、备份或延迟目标无法达成，或者 spin delay 持续时，应当调查。"}},"first_version":"17","has_dossier":true,"imported_at":"2026-09-27T17:57:33.116872+08:00","key":"timeout/walsummarizererror","last_version":"20","name":"WalSummarizerError","position":302,"present_in":["17","18","19","20"],"slug":"wal-summarizer-error","source_rev":"english-manuals:ed148d6642505dd3114c851e9b9497da05d5aae3ab47fa64e6b5efe53e607b88","summary":"Waiting after a WAL summarizer error.","summary_zh":"","type":"Timeout","type_slug":"timeout","type_variants":["Timeout"]}},"Definition":{"Collection":"waitevent","Key":"timeout/WalSummarizerError","SourceDatabase":"center","Version":"18","SourceTable":"waitevent","SourceKey":"timeout/walsummarizererror","SourceRevision":"english-manuals:ed148d6642505dd3114c851e9b9497da05d5aae3ab47fa64e6b5efe53e607b88","Facts":{"description":"Waiting after a WAL summarizer error.","description_zh":"","doc":{"anchor":"WAIT-EVENT-TIMEOUT-TABLE","file":"monitoring-stats.html","lang":"en","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","slug":"18"},"lang":"en","name":"WalSummarizerError","source":"english-manual","type":"Timeout","zh_from":""},"ManualEvidence":{"doc":{"anchor":"WAIT-EVENT-TIMEOUT-TABLE","file":"monitoring-stats.html","lang":"en","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"waitevent","Key":"timeout/WalSummarizerError","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"WalSummarizerError","Summary":"在 WAL 汇总进程出错后等待。","BodyHTML":"\u003cp\u003e在 WAL 汇总进程出错后等待。\u003c/p\u003e","SourceRevision":"2026-08-31@34d13c8","ContentHash":"54c50d3835aa472e2852322eb0b973da6d74537334fdf82acd85dba65ca4415d","Payload":{"description_zh":"在 WAL 汇总进程出错后等待。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
