Add missing CommandCounterIncrement
authorÁlvaro Herrera
Sun, 26 Jan 2025 16:34:28 +0000 (17:34 +0100)
committerÁlvaro Herrera
Sun, 26 Jan 2025 16:34:28 +0000 (17:34 +0100)
commit0a16c8326c5a14abd180eeefe5e5ee4263513c2a
tree66d5f38a656f9a3410c6815e7471715a258ae293
parentd28cd3e7b21c41a710fd9c188a57dad99f28805f
Add missing CommandCounterIncrement

For commit b663b9436e75 I thought this was useless, but turns out not to
be for the case where a partitioned table has two identical foreign key
constraints which can both be matched by the same constraint in a
partition during attach.  This CCI makes the match search for the second
constraint in the parent ignore the constraint in the child that has
already been matched by the first constraint in the parent.

Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/c599253c-1ccd-4161-80fc-c9065e037a09@gmail.com
src/backend/commands/tablecmds.c
src/test/regress/expected/foreign_key.out
src/test/regress/sql/foreign_key.sql