model-writtenrun 711 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Melanie Plageman reported that on-access visibility-map updates could let VACUUM skip pages with stale free-space information and attached a fix that records free space whenever pruning newly marks a page all-visible; she favored this simple approach despite small worst-case overhead and requested backpatching to PostgreSQL 19 #1.
- Andrey Borodin verified that the patch corrected FSM values on a single node and matched streaming-standby replay, warned that a dedicated test could be unstable, and requested clearer explanation of why other pruning operations omit FSM updates #2.
- Andres Freund proposed skipping FSM updates for full pages where pruning removed no tuples, but favored simplicity at this release stage; he deferred broader FSM API improvements beyond PostgreSQL 19 and questioned the existing free-space reservation rationale #3.
- Melanie committed the attached fix from #1 as eed6c0d33e, preserving its logic while clarifying the comments about reserving space for HOT updates; she confirmed that the heuristic was omitted and that she had not found a reliable test #4 #5.
- After landing, Melanie measured about 2% overhead in a deliberately minimal scan but no observable impact with count(*), then posted an inline heuristic to avoid recording free space when no tuples were deleted and the page remained nearly full; the original fix remained landed, while the optimization was unresolved and explicitly deferred during the PostgreSQL 19 stable-branch freeze #6.