Commit 0a16c83
committed
Add missing CommandCounterIncrement
For commit b663b94 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 <[email protected]>
Discussion: https://postgr.es/m/[email protected]1 parent d28cd3e commit 0a16c83
File tree
3 files changed
+31
-10
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+31
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11564 | 11564 | | |
11565 | 11565 | | |
11566 | 11566 | | |
| 11567 | + | |
| 11568 | + | |
| 11569 | + | |
| 11570 | + | |
| 11571 | + | |
| 11572 | + | |
| 11573 | + | |
| 11574 | + | |
| 11575 | + | |
| 11576 | + | |
11567 | 11577 | | |
11568 | 11578 | | |
11569 | 11579 | | |
11570 | 11580 | | |
11571 | 11581 | | |
11572 | | - | |
11573 | | - | |
11574 | | - | |
11575 | | - | |
11576 | | - | |
11577 | | - | |
11578 | | - | |
11579 | | - | |
11580 | | - | |
11581 | 11582 | | |
11582 | | - | |
11583 | 11583 | | |
11584 | 11584 | | |
11585 | 11585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
2065 | 2075 | | |
2066 | 2076 | | |
2067 | 2077 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
1494 | 1505 | | |
1495 | 1506 | | |
1496 | 1507 | | |
| |||
0 commit comments