model-writtenrun 5859 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread in #1 after discovering that his recent fix still allowed lossy index-only scan rechecks to read non-returnable columns, producing wrong results and misleading EXPLAIN output; he proposed a separate recheck expression despite the extension API implications.
- In #2, Tom submitted two patches: the first replaced NULL substitution with resjunk marking and added recheckqual so expressions could be recomputed from retrievable columns, while the second removed an older conservative planner restriction; he proposed back-patching only the correctness fix.
- Andrey Borodin tested the first patch and reported in #3 that duplicate returnable and non-returnable attributes still prevented index-only scans even though the analogous expression case allowed them.
- Tom explained in #4 that the second patch addressed that limitation, and Andrey confirmed it worked in #5, leaving the thread's final message with successful testing and no further requested changes.
- Tom subsequently committed the first patch unchanged as 9a3ddeb519 and back-patched it to all supported branches; lossy distance ordering remained unsupported, with regression coverage checking its EXPLAIN output and existing error.
- Tom then committed the second patch unchanged as 8a2e323f20, completing the series from #2 on the development branch while declining backports of this corner-case planning improvement.