Dec 2025

3 commits
Teach expr_is_nonnullable() to handle more expression types
24 Dec 2025Richard Guomaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #121 of 4 reviewers saw the final version

Matches the complete third patch in #12: expr_is_nonnullable() gains additional expression types, with predicate regression tests and the opaque_array() adjustment in test_predtest. All diff content matches after removing index hashes and hunk coordinates.

  • Tender Wangsaw an earlier versiontrailerIn #2, he reviewed the original COALESCE null-test logic in #1, before its extraction into a recursive helper and extension to additional expression types.
  • Dagfinn Ilmari Mannsåkersaw an earlier versiontrailerIn #3, he proposed foreach_ptr for the COALESCE argument loop in #1, which was adopted before the helper gained substantially broader expression support.
  • David Rowleysaw an earlier versiontrailerIn #4, #5, and #8, he advocated the shared nullability helper and separate COALESCE support, before the additional expression types were introduced.
  • Matheus Alcantarasaw the final versiontrailerIn #13, he reported checking test coverage and manually testing all patches in #12, finding no issues or regressions.
Optimize ROW(...) IS [NOT] NULL using non-nullable fields
24 Dec 2025Richard Guomaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #121 of 4 reviewers saw the final version

Matches the complete second patch in #12, adding non-nullable row-field checks and switching scalar NullTest folding to expr_is_nonnullable() in src/backend/optimizer/util/clauses.c. All diff content matches after removing index hashes and hunk coordinates.

  • Tender Wangsaw an earlier versiontrailerIn #2, he reviewed the scalar COALESCE null-test precursor in #1, before the shared-helper conversion and new row-field optimization.
  • Dagfinn Ilmari Mannsåkerno review foundtrailerHis review in #3 concerned only the COALESCE argument loop that became expression-type support, with no review of the row-field or scalar NullTest refactoring committed here.
  • David Rowleysaw an earlier versiontrailerIn #4 and #8, he proposed using expr_is_nonnullable() in constant folding, but the row-field optimization was added afterward in #10.
  • Matheus Alcantarasaw the final versiontrailerIn #13, he reported reviewing test coverage and manually testing the complete series in #12, finding no issues or regressions.
Simplify COALESCE expressions using non-nullable arguments
24 Dec 2025Richard Guomaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surelanded as postedfrom patchset #122 of 4 reviewers saw the final version

Matches the complete first patch in #12, including COALESCE simplification, the root guard in expr_is_nonnullable(), and generated_virtual and predicate test changes. All diff content matches after removing index hashes and hunk coordinates.

  • Tender Wangsaw an earlier versiontrailerIn #2, he found the initial Var-specific simplification correct and questioned join reordering, before #7 generalized it through expr_is_nonnullable().
  • Dagfinn Ilmari Mannsåkerno review foundtrailerIn #3, he explicitly limited his feedback to the separate COALESCE nullability loop, with no review of the argument simplification committed here.
  • David Rowleysaw the final versiontrailerHe proposed the shared-helper approach in #4 and reviewed its implementation and packaging in #8, after which this component received only rebasing, test additions, and editorial changes.
  • Matheus Alcantarasaw the final versiontrailerIn #13, he reported checking coverage of the new tests and manually testing all patches in #12, finding no issues or regressions.

Credits across 3 commits

Author
Richard Guo3
Reviewer
Dagfinn Ilmari Mannsåker3
David Rowley3
Matheus Alcantara3
Tender Wang3
Committer
Richard Guo3