model-writtenrun 966 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrei Lepikhov reported that experimental query plans could deliver unsorted offsets to TidStoreSetBlockOffsets(), triggering its assertion, and proposed sorting them in the C test harness in #1.
- Masahiko Sawada requested a reproducer and regression coverage in #2, prompting Andrei to add an explicitly descending-offset test while preserving the C fix in #3.
- Masahiko advocated sorting only where needed in SQL in #4 and supplied a helper that generated sorted, distinct random offsets in #6; Andrei accepted the alternative but explained that sorting at the C call demonstrated the API contract for extension developers in #7.
- Masahiko reconsidered and preferred Andrei's C approach in #8, leaving the SQL helper alternative unused, but asked whether ordinary optimizer settings could reproduce the failure; Andrei explained that experimental planner tools had exposed it in #9.
- The backpatch discussion in #10 weighed the absence of failures under normal planner choices against benefits for extension developers; Andrei supported backpatching and supplied contrasting plans showing how swapping join sides exposed unordered offsets in #11.
- Masahiko posted final patches for master and stable branches through PostgreSQL 17 in #12; although those attachments failed extraction, a424e31b16 contains Andrei's original C sorting changes without the later descending-offset regression test, whose omission was not explained in the discussion.
- Masahiko confirmed the push in #13, completing the fix and its backpatches with no further work proposed in the thread.