model-writtenrun 7625 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Floris Van Nee reported that large non-HOT updates caused low-fillfactor tables to grow indefinitely because page selection bypassed the FSM and unused line pointers prevented otherwise-empty pages from appearing completely free #1.
- John Naylor confirmed that ordinary inserts were affected and proposed allowing slightly occupied pages #2; Floris explained why slack should scale with page capacity rather than fillfactor #3 #4, leading John to adopt a 2% allowance #5.
- Matthias van de Meent demonstrated that the patch could PANIC when the tuple exceeded the requested free space and proposed requesting at least the tuple's length #9; Floris incorporated that correction #10.
- Matthias also raised trimming unused line pointers during vacuum #9, but John explained that this separate work would only remove the need for slack and would not replace the page-selection fix #11 #12.
- Matthias proposed expressing slack as one-eighth of maximum line-pointer space and applying the threshold consistently #13, then identified a missing large-tuple case in John's alternative formulation #15; John retained Max(), adopted the threshold, and added regression tests using a small live tuple to avoid vacuum visibility problems in parallel tests #16.
- Matthias reviewed the completed implementation and suggested clearer explanations #17, which John incorporated without changing behavior #18.
- Noah Misch retained the threshold after considering page lifecycles and nondefault block sizes, clarified that the behavior and tests were not specific to FSM lookup, and posted a version with naming and comment improvements #20.
- At the thread's close, backpatching remained conditional: John considered the existing behavior a bug, while Noah distinguished empty-page reuse from the policy change of accepting slightly occupied pages and wanted stronger support before backpatching #22 #23.
- Noah subsequently committed #20 as 0ff8bbdee1, correcting one comment; the supplied record shows the complete patch landed on the development branch and lists no backports.