Commit c250062d authored by Alvaro Herrera's avatar Alvaro Herrera

Remove unused argument of ATAddForeignConstraint

Commit 0325d7a5 made this unused but forgot to remove it. Do so now.

Author: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/209c99fe-b9a2-94f4-cd68-a8304186a09e@lab.ntt.co.jp
parent 6f70d7ca
...@@ -477,7 +477,7 @@ static ObjectAddress ATAddCheckConstraint(List **wqueue, ...@@ -477,7 +477,7 @@ static ObjectAddress ATAddCheckConstraint(List **wqueue,
bool recurse, bool recursing, bool is_readd, bool recurse, bool recursing, bool is_readd,
LOCKMODE lockmode); LOCKMODE lockmode);
static ObjectAddress ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, static ObjectAddress ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab,
Relation rel, Constraint *fkconstraint, Oid parentConstr, Relation rel, Constraint *fkconstraint,
bool recurse, bool recursing, bool recurse, bool recursing,
LOCKMODE lockmode); LOCKMODE lockmode);
static ObjectAddress addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint, static ObjectAddress addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint,
...@@ -8620,7 +8620,7 @@ ATExecAddConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel, ...@@ -8620,7 +8620,7 @@ ATExecAddConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
NIL); NIL);
address = ATAddForeignKeyConstraint(wqueue, tab, rel, address = ATAddForeignKeyConstraint(wqueue, tab, rel,
newConstraint, InvalidOid, newConstraint,
recurse, false, recurse, false,
lockmode); lockmode);
break; break;
...@@ -8826,7 +8826,7 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel, ...@@ -8826,7 +8826,7 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
*/ */
static ObjectAddress static ObjectAddress
ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel, ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
Constraint *fkconstraint, Oid parentConstr, Constraint *fkconstraint,
bool recurse, bool recursing, LOCKMODE lockmode) bool recurse, bool recursing, LOCKMODE lockmode)
{ {
Relation pkrel; Relation pkrel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment