model-writtenrun 296 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ewan Young reported that trailing-key MINVALUE/MAXVALUE bounds could incorrectly prune the default partition and silently omit rows, proposing a first-key correctness fix plus a separate equality-prefix optimization to preserve valid pruning opportunities in #1.
- Tender Wang confirmed that the fix worked, agreed with the diagnosis, and submitted a comment-only revision of the first patch while saying the other changes looked good in #2.
- Radim Marek independently reproduced the wrong result on master in #3; Ewan explained that another recent pruning fix addressed a separate bug, reconfirmed that this thread's patch fixed Radim's example, and identified regression-test conflicts requiring a rebase in #4.
- David Rowley combined both original patches, explained how intersecting leading-prefix pruning steps preserves correct default-partition exclusion, restricted first-key trimming to nvalues == 1 to avoid redundant work, and reported fuzz testing in #5.
- Ewan approved the combined patch and its revised explanation in #6.
- David committed b9d9e9bcc5 from #5 with unchanged backend logic and revised regression tests, including additional MINVALUE boundary plans and removal of data-result and no-default tests; his final confirmation in #7 leaves both original changes landed, with backpatching through PostgreSQL 14 recorded in the commit.