model-writtenrun 1866 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Natalya Aksman reported a PostgreSQL 18rc1 assertion failure with a reproducer using skip arrays and descending index keys, identifying an incorrectly inverted comparison in #1.
- Tom Lane confirmed the failure and bisected it to the optimization that avoids extra index searches through preprocessing in #2.
- Peter Geoghegan explained that preprocessing had already inverted DESC key strategies and supplied a patch to commute replacement operator lookups accordingly; the reproducer and his existing tests passed in #4.
- Natalya Aksman approved the patch and confirmed that it fixed their failing tests in #5.
- At the thread's last message, Peter reported that adding alternating ASC/DESC columns to fuzz testing immediately exposed incorrect query results without the fix, while several million randomized queries passed with it; the patch was tested but still awaiting commit in #7.
- Peter subsequently committed e457312c0d from #4, preserving its behavior with a small lookup-variable refactor and clearer comments, and backpatched the fix to PostgreSQL 18.