model-writtenrun 3703 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zuming Jiang reported a PostgreSQL 17devel fuzzer query that raised “negative bitmapset member not allowed” in #1, then observed that removing its window clause avoided the error in #2.
- Richard Guo traced the failure to self-join elimination removing PlaceHolderVars in #3 and explained that inner-join removal passed an ojrelid of -1 to bms_is_member() in #4; his initial patch changed that API to return false for negative inputs and added a simplified regression test.
- Andrei Lepikhov agreed with the diagnosis but opposed changing the bitmapset API because it could hide programming errors, and showed that LATERAL was unnecessary in the reproducer #5.
- Richard replaced the API change with a local guard that skips the outer-join membership check for inner joins, citing consistency with the nearby assertion and reduced impact, and removed LATERAL from the test #6.
- Andrei approved the revision in #7, and Alexander Korotkov endorsed it and announced his intention to commit in the thread’s last message #8; the fix subsequently landed unchanged from #6 as fe093994db, leaving no patch work outstanding in the supplied thread.