{"Entry":{"collection":"guc","key":"effective_wal_level","name":"effective_wal_level","aliases":[],"metadata":{"baseline":false,"boot_human":"Not specified","boot_val":null,"category":"Preset Options","category_zh":"","changed_in":[],"changes":[{"documentation_changed":false,"fields":{},"from":"18","status":"added","to":"19"}],"content_hash":"4c262d90c92d16b23ccf5a71731248f2d32d1b1e08b9dbbf6f20c6ca40e394c1","context":"","default_changed_in":[],"default_history":[{"from":"19","to":"19","value":"replica"}],"derived_content_hash":"3933ccc58b565b7dbeefec41986968718a0ae16b1fb98140f1f99e1c633c19d9","editorial":{"advice":{"olap":"Evaluate the setting with representative long-running and batch work. Measure total runtime, resource use, log volume, and failure behavior across the whole job rather than one isolated operation.","oltp":"Keep the upstream default until a reproducible operational need is demonstrated. Test under representative concurrency and inspect logs, latency, and the related settings before changing cluster-wide policy.","small":"Minimize overrides and document rollback. A small system has less room for extra logging, workers, memory, or retained WAL, so validate the change with explicit resource limits."},"mechanism":["PostgreSQL describes effective_wal_level as follows: “Shows effective WAL level.” It is read-only state reported by PostgreSQL, not an operator-controlled tuning knob. The atlas measures it in PG19 Beta 3; boot_val is the compiled or initialized baseline, not proof of a running cluster's effective setting.","Unlike configured wal_level, this read-only value reports the operational logging level. PostgreSQL 19 can maintain logical-equivalent WAL when logical slots require it even if wal_level is replica, and a standby inherits the effective value from the most upstream server in its replication chain.","Read it together with wal_level, max_replication_slots, max_wal_senders, track_commit_timestamp. Check SHOW and pg_settings on the target server, verify the source and pending_restart fields, and compare workload, logs, and resource metrics before and after any change."],"pitfalls":["Treating the measured boot_val for effective_wal_level as proof of the effective value on an initialized or managed cluster.","Applying a change as though it were immediate while pg_settings reports internal context.","Changing this setting in isolation without checking the linked limits, observability, and rollback path.","Depending on beta behavior in production without retesting the PostgreSQL 19 final release."],"references":[{"title":"PostgreSQL 19 Beta 4: effective_wal_level","url":"https://www.postgresql.org/docs/19/runtime-config-preset.html#GUC-EFFECTIVE-WAL-LEVEL"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["wal_level","max_replication_slots","max_wal_senders","track_commit_timestamp"],"summary":"effective_wal_level — Shows effective WAL level. Observed in PG19 Beta 4; its last measured boot default is replica in PG19 Beta 4, with internal context. This is a beta-snapshot fact and can change before PostgreSQL 19 GA."},"enumvals":[],"first_version":"19","group":"Preset Options","group_slug":"preset","imported_at":"2026-09-27T17:57:31.163652+08:00","intro_commit":{"authored_at":"2025-12-23T10:13:16-08:00","discussion":["https://postgr.es/m/CAD21AoCVLeLYq09pQPaWs+Jwdni5FuJ8v2jgq-u9_uFbcp6UbA@mail.gmail.com"],"hash":"67c20979ce72b8c236622e5603f9775968ff501c","subject":"Toggle logical decoding dynamically based on logical slot presence.","url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=67c20979ce72b8c236622e5603f9775968ff501c"},"key":"effective_wal_level","last_version":"20","max_val":"","min_val":"","name":"effective_wal_level","position":111,"present_in":["19","20"],"repair_provenance":{"original_source_revision":"english-manuals:73e7002b64008a59322d17cd1bdbea9e11f8664727877f692b55e4627766411c","receipt_sha256":"ac5a3b5a0ee44f69a3efca2bfebc9463497e9a568eef9661f466dbba099e88f8","repair":"wiki-repair-20261023"},"short_desc":"Reports the actual WAL logging level currently in effect in the system.","short_desc_zh":"","source_rev":"wiki-repair-20261023:639310fe5890cf270e6323926c79132648f8b395cee0e34fc9ca2cf5f0fbfdfe","unit":"","vartype":"enum"}},"Definition":{"Collection":"guc","Key":"effective_wal_level","SourceDatabase":"center","Version":"19","SourceTable":"guc","SourceKey":"effective_wal_level","SourceRevision":"wiki-repair-20261023:639310fe5890cf270e6323926c79132648f8b395cee0e34fc9ca2cf5f0fbfdfe","Facts":{"boot_val":"replica","category":"Preset Options","context":"internal","description":"Reports the actual WAL logging level currently in effect in the system. This parameter shares the same set of values as wal_level, but reflects the operational WAL level rather than the configured setting. For descriptions of possible values, refer to the wal_level parameter documentation. The effective WAL level can differ from the configured wal_level in certain situations. For example, when wal_level is set to replica and the system has one or more logical replication slots, effective_wal_level will show logical to indicate that the system is maintaining WAL records at logical level equivalent. On standby servers, effective_wal_level matches the value of effective_wal_level from the most upstream server in the replication chain.","description_zh":"报告当前系统中实际生效的 WAL 记录级别。此参数与 wal_level 共享同一组取值，但反映的是运行中的 WAL 级别，而非配置值。各可能取值的说明请参见 wal_level 参数文档。 实际生效的 WAL 级别在某些情况下可能与配置的 wal_level 不同。例如，当 wal_level 设置为 replica 且系统中有一个或多个逻辑复制槽时，effective_wal_level 会显示为 logical，表示系统正在以等同于 logical 级别的方式维护 WAL 记录。 在备库服务器上，effective_wal_level 与复制链中最上游服务器的 effective_wal_level 值一致。","description_zh_html":"\u003cp\u003e\n        报告当前系统中实际生效的 WAL 记录级别。此参数与 \u003ca class=\"xref\" href=\"/zh/docs/19/runtime-config-wal.html#GUC-WAL-LEVEL\"\u003ewal_level\u003c/a\u003e 共享同一组取值，但反映的是运行中的 WAL 级别，而非配置值。各可能取值的说明请参见 \u003ccode class=\"varname\"\u003ewal_level\u003c/code\u003e 参数文档。\n       \u003c/p\u003e\u003cp\u003e\n        实际生效的 WAL 级别在某些情况下可能与配置的 \u003ccode class=\"varname\"\u003ewal_level\u003c/code\u003e 不同。例如，当 \u003ccode class=\"varname\"\u003ewal_level\u003c/code\u003e 设置为 \u003ccode class=\"literal\"\u003ereplica\u003c/code\u003e 且系统中有一个或多个逻辑复制槽时，\u003ccode class=\"varname\"\u003eeffective_wal_level\u003c/code\u003e 会显示为 \u003ccode class=\"literal\"\u003elogical\u003c/code\u003e，表示系统正在以等同于 \u003ccode class=\"literal\"\u003elogical\u003c/code\u003e 级别的方式维护 WAL 记录。\n       \u003c/p\u003e\u003cp\u003e\n        在备库服务器上，\u003ccode class=\"varname\"\u003eeffective_wal_level\u003c/code\u003e 与复制链中最上游服务器的 \u003ccode class=\"varname\"\u003eeffective_wal_level\u003c/code\u003e 值一致。\n       \u003c/p\u003e","doc":{"anchor":"GUC-EFFECTIVE-WAL-LEVEL","file":"runtime-config-preset.html","lang":"en","sha256":"da4403b48b6c7c6b6dbfb8ac1aac291bf350bbdde3c4d72414a7105a9e101266","slug":"19"},"documented":true,"enumvals":["minimal","replica","logical"],"extra_desc":null,"lang":"en","max_val":null,"metadata_version":"19beta4","min_val":null,"name":"effective_wal_level","short_desc":"Shows effective WAL level.","source":"pg-settings-source-snapshot","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/19/html/runtime-config-preset.html","sha256":"87123aeed0274b0f09bf541b14d809b20632bb449dca522e03c138297719e16b"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"19"},"unit":null,"vartype":"enum","zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"GUC-EFFECTIVE-WAL-LEVEL","file":"runtime-config-preset.html","lang":"en","sha256":"da4403b48b6c7c6b6dbfb8ac1aac291bf350bbdde3c4d72414a7105a9e101266","slug":"19"}},"MeasuredEvidence":{"metadata_version":"19beta4"}},"Text":{"Collection":"guc","Key":"effective_wal_level","SourceDatabase":"center","Version":"19","Locale":"en","Title":"effective_wal_level","Summary":"Reports the actual WAL logging level currently in effect in the system. This parameter shares the same set of values as wal_level, but reflects the operational WAL level rather than the configured setting. For descriptions of possible values, refer to the wal_level parameter documentation. The effective WAL level can differ from the configured wal_level in certain situations. For example, when wal_level is set to replica and the system has one or more logical replication slots, effective_wal_level will show logical to indicate that the system is maintaining WAL records at logical level equivalent. On standby servers, effective_wal_level matches the value of effective_wal_level from the most upstream server in the replication chain.","BodyHTML":"\u003cp\u003eReports the actual WAL logging level currently in effect in the system. This parameter shares the same set of values as wal_level, but reflects the operational WAL level rather than the configured setting. For descriptions of possible values, refer to the wal_level parameter documentation. The effective WAL level can differ from the configured wal_level in certain situations. For example, when wal_level is set to replica and the system has one or more logical replication slots, effective_wal_level will show logical to indicate that the system is maintaining WAL records at logical level equivalent. On standby servers, effective_wal_level matches the value of effective_wal_level from the most upstream server in the replication chain.\u003c/p\u003e","SourceRevision":"wiki-repair-20261023:639310fe5890cf270e6323926c79132648f8b395cee0e34fc9ca2cf5f0fbfdfe","ContentHash":"dcc9bca0647f2e9d3b923109fd1cdc2779f323487fcdf165716c74be60c2140f","Payload":{"description":"Reports the actual WAL logging level currently in effect in the system. This parameter shares the same set of values as wal_level, but reflects the operational WAL level rather than the configured setting. For descriptions of possible values, refer to the wal_level parameter documentation. The effective WAL level can differ from the configured wal_level in certain situations. For example, when wal_level is set to replica and the system has one or more logical replication slots, effective_wal_level will show logical to indicate that the system is maintaining WAL records at logical level equivalent. On standby servers, effective_wal_level matches the value of effective_wal_level from the most upstream server in the replication chain."}},"RequestedLocale":"en","Fallback":false,"Versions":["19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
