model-writtenrun 3776 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bharath Rupireddy opened the discussion by reporting Windows compilation failures and logging-sensitive TAP failures with WAL_DEBUG, supplying an inline Windows fix and proposing either broader availability or removal of the debugging facility #1.
- Nathan Bossart questioned removing a developer tool and raised performance concerns about enabling its code generally, while Tom Lane initially favored removal because the apparent long-standing breakage suggested disuse #2 #3.
- Bharath submitted a patch removing WAL_DEBUG and wal_debug, retaining selected messages at DEBUG2 and moving generic WAL delta validation under assertion checking; he also reported roughly 10% slower recovery tests with WAL_DEBUG enabled #4 #5.
- Noah Misch and Michael Paquier defended WAL_DEBUG as an actively useful development tool for correlating WAL records with other logging and checking generated records, favoring the Windows fix while questioning the value of adapting tests to extra debugging output #6 #7.
- Michael verified and committed Bharath's inline Windows fix as 7636725b92, backpatching through PostgreSQL 13 and reporting completion in #8.
- Peter Eisentraut offered an alternative that exposes disabled debugging code to the compiler using a constant-false XLOG_DEBUG; Euler Taveira suggested clearer naming, Tom warned about unreachable-code diagnostics and coverage effects, and Michael raised concerns about recovery-loop overhead #9 #10 #11 #12.
- The discussion then identified trace_recovery_messages as a separate cleanup opportunity: Euler recalled its temporary hot-standby debugging purpose, and Michael advocated removal because tools such as pg_waldump now provided useful alternatives #13 #14.
- Bharath submitted a separate nine-file patch removing trace_recovery_messages, its documentation and helper function, and its special recovery-loop conditions while preserving ordinary DEBUG-level logging and WAL_DEBUG #16.
- Robert Haas and Noah supplied further examples of WAL_DEBUG's usefulness, while Robert also identified an unresolved need for selective subsystem or process logging without increasing verbosity across the whole server #17 #18.
- Michael accepted the trace_recovery_messages removal and committed #16 unchanged apart from rebasing as c7a3e6b46d, confirming completion in the final message; the thread records no landing of the broader WAL_DEBUG removal or Peter's compiler-checking alternative #19 #20.