model-writtenrun 8545 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra opened the thread with a longstanding wrong-results bug: FULL JOIN constant propagation could discard unmatched rows when COALESCE operands failed to preserve NULL, and his initial patch conservatively checked both operands while allowing nested COALESCE and precomputed PlaceHolderVars #1.
- Ayush Tiwari supported the dedicated helper after examining existing alternatives and the NULL-preservation logic, while identifying a separate JsonExpr strictness problem during testing #2.
- Tomas rebased the patch, expanded its explanation, and added a PostgreSQL 15 variant after confirming the bug predated the PostgreSQL 16 join changes #4.
- Kirill Reshke demonstrated that the patch prevented safe filter pushdown through a strict expression containing a PlaceHolderVar; Tomas corrected his initial diagnosis and identified unwanted descent into the placeholder's non-strict inner expression #5 #8.
- Tomas introduced recursive handling in v3, and Kirill confirmed that the reported optimization regression disappeared #9 #10.
- After considering the limited node coverage, Tomas expanded the implementation to mirror the existing strictness walker and moved it into clauses.c so the walkers could share local helpers and be maintained together #11 #12.
- Tomas delayed committing before the release freeze to gain confidence, and further review exposed separate JsonExpr and CoerceToDomain problems in the existing walker #14.
- Tomas committed v4 with minor adjustments as 72b480e55d, backpatched through PostgreSQL 15, and closed this thread's fix while explicitly leaving JsonExpr and CoerceToDomain handling for a coordinated correction in separate discussion #15.