Nov 2026

1 commit
Further varnullingrels fixes for MERGE WHEN NOT MATCHED BY SOURCE.
12 Nov 2026Dean RasheedmasterunreleasedREL_19_STABLE19.0REL_18_STABLEunreleasedREL_17_STABLEunreleased
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #11 of 1 reviewer saw the final version

Commits only the MERGE fix from #1, preserving get_relids_in_jointree() and all four sourcerelids substitutions in src/backend/optimizer/prep/prepjointree.c. Changes are cosmetic code adjustments and expanded regression tests covering wrong results and wrong-varnullingrels errors, as Dean confirms in #15.

  • Dean Rasheedsaw the final versiontrailerDean committed the fix and confirmed that the analysis and implementation were correct, with cosmetic adjustments and expanded tests, in #15.

Oct 2026

3 commits
Don't trust NOT NULL on virtual generated columns of partitioned tables
10 Oct 2026Richard GuomasterunreleasedREL_19_STABLE19rc1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #11 of 1 reviewer saw the final version

Commits only the virtual-generated-column fix from #1, retaining the same var_is_nonnullable() condition in src/backend/optimizer/util/clauses.c. Changes are a rewritten comment and relocated, revised regression coverage including EXPLAIN; Richard confirms the landing in #5.

  • Richard Guosaw the final versiontrailerRichard committed the fix and explained its correctness and the underlying parent/partition constraint problem in #5.
Preserve typmod and collation when reducing an expression to its input
10 Oct 2026Richard GuomasterunreleasedREL_19_STABLE19rc1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #1

Takes the COALESCE metadata fix from #1, extends applyRelabelType() to CASE and NULLIF in src/backend/optimizer/util/clauses.c, and removes another COALESCE early return. Richard's coauthored expansion is explained in #5; collation tests are expanded and the original predicate.sql typmod test is omitted.

Fix ON CONFLICT inference for index expressions simplified to a Var
10 Oct 2026Richard GuomasterunreleasedREL_19_STABLE19rc1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #12 of 2 reviewers saw the final version

Commits only the ON CONFLICT patch from #1, preserving its index-expression classification and collation/opclass matching changes in src/backend/optimizer/util/plancat.c. Edits rename local variables, revise comments and tests, and add a defensive missing-expression check; #5 confirms the landing.

  • jian hesaw the final versiontrailerjian reviewed the ON CONFLICT patch in #4, suggested comment and InvalidAttrNumber cleanups, and otherwise found it good; only light edits followed.
  • Richard Guosaw the final versiontrailerRichard committed the ON CONFLICT fix with cleanup and reported its completion in #5.

Credits across 4 commits

Author
shihao zhong4
Richard Guo1
Reviewer
Richard Guo2
Dean Rasheed1
jian he1
Reported by
shihao zhong2
Committer
Richard Guo3
Dean Rasheed1