@@ -477,7 +477,7 @@ static ObjectAddress ATAddCheckConstraint(List **wqueue,
477
477
bool recurse, bool recursing, bool is_readd,
478
478
LOCKMODE lockmode);
479
479
static ObjectAddress ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab,
480
- Relation rel, Constraint *fkconstraint, Oid parentConstr,
480
+ Relation rel, Constraint *fkconstraint,
481
481
bool recurse, bool recursing,
482
482
LOCKMODE lockmode);
483
483
static ObjectAddress addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint,
@@ -8620,7 +8620,7 @@ ATExecAddConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
8620
8620
NIL);
8621
8621
8622
8622
address = ATAddForeignKeyConstraint(wqueue, tab, rel,
8623
- newConstraint, InvalidOid,
8623
+ newConstraint,
8624
8624
recurse, false,
8625
8625
lockmode);
8626
8626
break;
@@ -8826,7 +8826,7 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
8826
8826
*/
8827
8827
static ObjectAddress
8828
8828
ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
8829
- Constraint *fkconstraint, Oid parentConstr,
8829
+ Constraint *fkconstraint,
8830
8830
bool recurse, bool recursing, LOCKMODE lockmode)
8831
8831
{
8832
8832
Relation pkrel;
0 commit comments