model-writtenrun 8432 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that ProcessSyncRequests() left pendingOps entries behind with fsync disabled and supplied a patch that preserves entry removal while conditionally skipping synchronization #1.
- Thomas Munro explained that retaining requests could not guarantee durability when fsync was re-enabled, identified an assertion failure in that scenario, and reviewed the patch favorably while suggesting a goto to reduce indentation #2.
- Heikki retained the conditional block because he found a goto confusing, noted that safely re-enabling fsync requires running sync, and committed the original patch unchanged as e8abf585ab, with a backport to PostgreSQL 12 #3.
- During release-note preparation, Tom Lane highlighted indefinite pendingOps hash-table bloat with fsync disabled as a more significant consequence than the assertion failure, and Heikki confirmed it #4 #5.
- Shawn Debnath subsequently proposed automatically synchronizing when fsync is re-enabled, but Tom rejected doing that directly in a GUC assign hook because such hooks cannot have failure modes #7 #8.
- Shawn then proposed having the assign hook set a flag for ProcessSyncRequests() to perform a later synchronization; the thread ended with the original fix committed and this additional behavior only a suggestion, without another patch or decision #9.