{"Entry":{"collection":"waitevent","key":"io/LogicalSubxactWrite","name":"LogicalSubxactWrite","aliases":["LogicalSubxactWrite"],"metadata":{"aliases":["LogicalSubxactWrite"],"changed_in":[],"changes":[{"from":"13","moved":null,"renamed":null,"reworded":null,"status":"added","to":"14"},{"from":"14","moved":null,"renamed":null,"reworded":null,"status":"removed","to":"15"}],"content_hash":"da7252ba3edc1552b0dd9dfb913dc3b098f9dd31321f2744ba394a1f0623ee17","dossier":{"actions":{"en":["Confirm the workload phase should touch this file class.","Correlate with pg_stat_io where available and per-device latency.","Fix the access path, burst shape, or affected storage tier before tuning unrelated memory settings."],"zh":["确认当前负载阶段本来就应访问这类文件。","在可用版本上关联 pg_stat_io 与具体设备延迟。","先修复访问路径、突发形状或受影响存储层，再调整无关的内存参数。"]},"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 = 'IO'\n  AND wait_event = 'LogicalSubxactWrite'\nORDER BY query_age DESC NULLS LAST;","title":"Sessions waiting on IO/LogicalSubxactWrite","title_zh":"正在等待 IO/LogicalSubxactWrite 的会话"},{"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 = 'IO'\nGROUP BY wait_event\nORDER BY waiting_sessions DESC, wait_event;","title":"Current IO cohort","title_zh":"当前 IO 等待分布"},{"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 = 'IO'\n  AND a.wait_event = 'LogicalSubxactWrite'\nORDER BY a.pid, l.granted, l.locktype, l.mode;","title":"Lock and relation context for these sessions","title_zh":"这些会话的锁与关系上下文"}],"emission":{"active_ranges":[],"dormant_ranges":["14"],"evidence":[{"label":"pgsql-hackers confirmation","url":"https://www.postgresql.org/message-id/ff077840-3ab2-04dd-bbe4-4f5dfd2ad481%40oss.nttdata.com"}],"reason":"catalogued but never reported; removed in PG15","status":"dormant"},"gucs":["autovacuum_freeze_max_age","vacuum_freeze_table_age"],"incident_pattern":{"en":"","zh":""},"mechanism":{"en":"The catalog identity is present, but source audit found no live reporter in 14. Known active ranges: none. The definition location below is retained as negative evidence; this exact release cannot emit the event from a core code path. Evidence: [pgsql-hackers confirmation](https://www.postgresql.org/message-id/ff077840-3ab2-04dd-bbe4-4f5dfd2ad481%40oss.nttdata.com).","zh":"目录中仍保留该身份，但源码审计确认在 14 已没有活动报告点。已知曾可触发范围：none。下方定义位置作为负面证据保留；当前精确版本不会从核心代码路径发出此事件。 证据：[pgsql-hackers confirmation](https://www.postgresql.org/message-id/ff077840-3ab2-04dd-bbe4-4f5dfd2ad481%40oss.nttdata.com)。"},"metrics":["waiting_sessions","wait_event_share","oldest_transaction_age","io_read_time","io_write_time"],"normal":{"en":"No live core occurrence is expected on the audited release.","zh":"在已审计的精确版本上，不应出现活动的核心触发。"},"official_descriptions":{"14":"Waiting for a write to a logical subxact file."},"record_kind":"event","source_locations":[{"commit":"6b3806732b7c5df06bdd0ed150e8a07b4ad62315","excerpt":"event_name = \"LogicalSubxactWrite\";","grep_pattern":"LogicalSubxactWrite","grep_verified":true,"kind":"catalog_definition","line":736,"major":14,"path":"src/backend/utils/activity/wait_event.c","status":"catalog_only","symbol":"LogicalSubxactWrite","tag":"REL_14_24","url":"https://github.com/postgres/postgres/blob/REL_14_24/src/backend/utils/activity/wait_event.c#L736","version":"14.24"}],"source_status":"catalog_only","trouble":{"en":"If telemetry shows it, verify the exact patch version, extension origin, and whether the sample is stale or came from a different server.","zh":"若监控仍显示它，应核对精确小版本、扩展来源，并确认样本是否陈旧或来自另一台服务器。"}},"first_version":"14","has_dossier":true,"imported_at":"2026-09-14T21:49:49.905772+08:00","key":"io/logicalsubxactwrite","last_version":"14","name":"LogicalSubxactWrite","position":80,"present_in":["14"],"slug":"logical-subxact-write","source_rev":"english-manuals:0b7d823af2f381eb6aa6e8b35d0004fbcf91feb72b30d88616ccf63c80de5810","summary":"Waiting for a write to a logical subxact file.","summary_zh":"","type":"IO","type_slug":"io","type_variants":["IO"]}},"Definition":{"Collection":"waitevent","Key":"io/LogicalSubxactWrite","SourceDatabase":"center","Version":"14","SourceTable":"waitevent","SourceKey":"io/logicalsubxactwrite","SourceRevision":"english-manuals:0b7d823af2f381eb6aa6e8b35d0004fbcf91feb72b30d88616ccf63c80de5810","Facts":{"description":"Waiting for a write to a logical subxact file.","description_zh":"","doc":{"anchor":"WAIT-EVENT-IO-TABLE","file":"monitoring-stats.html","lang":"en","sha256":"1852c6205d68e465d08dd8f75e3b6bfdd4a475ee8d79886e2dcff6bff8e2d243","slug":"14"},"lang":"en","name":"LogicalSubxactWrite","source":"english-manual","type":"IO","zh_from":""},"ManualEvidence":{"doc":{"anchor":"WAIT-EVENT-IO-TABLE","file":"monitoring-stats.html","lang":"en","sha256":"1852c6205d68e465d08dd8f75e3b6bfdd4a475ee8d79886e2dcff6bff8e2d243","slug":"14"}},"MeasuredEvidence":{}},"Text":{"Collection":"waitevent","Key":"io/LogicalSubxactWrite","SourceDatabase":"pgweb","Version":"14","Locale":"zh-Hans","Title":"LogicalSubxactWrite","Summary":"等待写入逻辑子事务文件。","BodyHTML":"\u003cp\u003e等待写入逻辑子事务文件。\u003c/p\u003e","SourceRevision":"2026-08-31@34d13c8","ContentHash":"c65e80d393dda2d38e54b3e59be56c353f670d290bba3285709b5af6f5f49c56","Payload":{"description_zh":"等待写入逻辑子事务文件。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["14"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
