model-writtenrun 1058 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported that invalid NOT NULL constraints could incorrectly justify converting NOT IN into an anti-join, and proposed checking tuple-descriptor attnullability in #1.
- The patch in #1 also renamed NOTNULL_SOURCE_SYSCACHE to NOTNULL_SOURCE_CATALOG, removed the unused get_attnotnull() helper, and added regression checks for an unvalidated constraint over existing NULL values.
- SATYANARAYANA NARLAPURAM reproduced the bug and verified the fix with all 247 regression tests passing in #2, while noting that multiple output columns could require repeated relation opens and closes.
- The patch from #1 landed as 363af93bdd with only a shortened locking comment; its implementation and tests were retained.
- Richard Guo confirmed the commit in #3 and explained that relation opens and closes were inexpensive cache and reference-count operations on a narrowly used path, closing the thread with the fix committed.