Commit dabccf4
committed
Move RemoveInheritedConstraint() call slightly earlier
This change is harmless and does not affect the existing intended
operation. It is necessary for a subsequent patch operation (NOT
ENFORCED foreign keys), where we may need to change the child
constraint to enforced. In this case, we would create the necessary
triggers and queue the constraint for validation, so it is important
to remove any unnecessary constraints before proceeding.
This is a small change that could have been included in the previous
"split tryAttachPartitionForeignKey" refactoring patch (commit
1d26c2d), but was kept separate to highlight the changes.
Author: Amul Sul <amul.sul@enterprisedb.com>
Reviewed-by: Alexandra Wang <alexandra.wang.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b962c5AcYW9KUt_R_ER5qs3fUGbe4az-SP-vuwPS-w-AGA%40mail.gmail.com1 parent 1d26c2d commit dabccf4
1 file changed
+15
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11572 | 11572 | | |
11573 | 11573 | | |
11574 | 11574 | | |
| 11575 | + | |
| 11576 | + | |
| 11577 | + | |
| 11578 | + | |
| 11579 | + | |
| 11580 | + | |
| 11581 | + | |
| 11582 | + | |
| 11583 | + | |
| 11584 | + | |
| 11585 | + | |
| 11586 | + | |
| 11587 | + | |
| 11588 | + | |
| 11589 | + | |
11575 | 11590 | | |
11576 | 11591 | | |
11577 | 11592 | | |
| |||
11608 | 11623 | | |
11609 | 11624 | | |
11610 | 11625 | | |
11611 | | - | |
11612 | | - | |
11613 | | - | |
11614 | | - | |
11615 | | - | |
11616 | | - | |
11617 | | - | |
11618 | | - | |
11619 | | - | |
11620 | | - | |
11621 | | - | |
11622 | | - | |
11623 | | - | |
11624 | | - | |
11625 | | - | |
11626 | 11626 | | |
11627 | 11627 | | |
11628 | 11628 | | |
| |||
0 commit comments