Jan 2025

4 commits
Add missing CommandCounterIncrement
26 Jan 2025Álvaro Herreramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Alexander Lakhin supplied the duplicate-foreign-key reproducer in #11, and Alvaro Herrera identified his conditional CommandCounterIncrement() as the cause in #12. The commit restores an unconditional increment in tryAttachPartitionForeignKey() and adds regression coverage; no attached patch contains this fix.

  • Alexander Lakhinsaw the final versionLLM analysis, 99% sureBefore the fix was committed, Alexander supplied the reproducer in #11 that drove the correction and regression test, and the commit credits him as Reported-by.
Fix instability in recently added regression tests
24 Jan 2025Álvaro Herreramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #102 of 2 reviewers saw the final version

The commit incorporates the three ORDER BY additions from #10, changes their sort expression to oid::regclass::text, and updates three existing ORDER BY clauses in src/test/regress/sql/foreign_key.sql and its expected output.

  • Tom Lanesaw the final versionLLM analysis, 99% sureTom identified unstable query ordering in the landed tests from #7 and requested ORDER BY in #9, directly prompting this test-only fix.
  • Álvaro Herrerasaw the final versioncommittercommitted the patch
Allow NOT VALID foreign key constraints on partitioned tables
23 Jan 2025Álvaro Herreramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #71 of 1 reviewer saw the final version

The commit retains the feature, recursive validation, and tests from #7, with comment, loop, and test-placement edits. It also moves CommandCounterIncrement() inside the validation conditional in tryAttachPartitionForeignKey(), a behavioral change later acknowledged as a bug in #12.

  • Álvaro Herrerasaw the final versioncommittercommitted the patch
Split ATExecValidateConstraint into reusable pieces
16 Jan 2025Álvaro Herreramaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #41 of 1 reviewer saw the final version

Only the refactoring component of the two-patch submission #4 landed, as confirmed in #5. The commit preserves both validation helpers in src/backend/commands/tablecmds.c, moving their definitions below ATExecValidateConstraint() and lightly reflowing comments.

  • Álvaro Herrerasaw the final versioncommittercommitted the patch

Credits across 4 commits

Author
Amul Sul3
Alvaro HerreraLLM1
Reviewer
Alvaro Herreracommitter3
Reported by
Alexander Lakhin1
Committer
Alvaro Herrera4

N LLM means N of the credits come from LLM analysis, not from commit trailers.