model-writtenrun 6898 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ayush Tiwari reported that inlining STRICT SQL functions containing empty-array ANY or ALL expressions could produce non-NULL results for NULL inputs, and submitted a patch restoring the ScalarArrayOpExpr-specific strictness check with regression tests #1.
- Ayush explained that checking the operator's strictness alone cannot establish the expression's strictness when the array might be empty, and distinguished this report from his related nullability question in another thread #1.
- Tom Lane agreed that the code fix was sound, considered the proposed tests excessive, and promised to commit the fix #2.
- The fix landed as part of 277122036c, combining the strictness check from #1 with the nullability corrections from thread #253211; Tom restructured the strictness walker to avoid redundant operator checks and omitted the proposed regression tests because he judged the reproductions too indirect and specialized.
- Tom confirmed that he had pushed the correction and explained that the else-if chain avoids a second operator-strictness check and wasted syscache lookup, leaving the submitted fix committed at the thread's end #3.