model-writtenrun 5969 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan questioned why opportunistic pruning subtracts newly created LP_DEAD items from its deleted-tuple count when reporting statistics, while VACUUM does not, in #1.
- Peter resolved his own question in #2: opportunistic pruning must retain dead-tuple accounting for LP_DEAD stubs awaiting VACUUM, whereas VACUUM handles those items separately.
- Peter submitted #3 to document this distinction and move statistics reporting into heap_page_prune_opt(), replacing heap_page_prune()'s report_stats flag with an output parameter for newly created LP_DEAD items.
- The thread ends with Peter's patch submission in #3, with no independent review or further revision recorded.
- Peter subsequently committed the patch as b0f7425ec2, retaining its approach with light comment and code-placement edits.