diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 10c1955884f..ee88e87d76d 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -9435,7 +9435,7 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel, } /* - * validateFkActionSetColumns + * validateFkOnDeleteSetColumns * Verifies that columns used in ON DELETE SET NULL/DEFAULT (...) * column lists are valid. */ @@ -9490,10 +9490,10 @@ validateFkOnDeleteSetColumns(int numfks, const int16 *fkattnums, * numfks is the number of columns in the foreign key * pkattnum is the attnum array of referenced attributes. * fkattnum is the attnum array of referencing attributes. - * numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DELETE + * numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DEFAULT * (...) clause * fkdelsetcols is the attnum array of the columns in the ON DELETE SET - * NULL/DELETE clause + * NULL/DEFAULT clause * pf/pp/ffeqoperators are OID array of operators between columns. * old_check_ok signals that this constraint replaces an existing one that * was already validated (thus this one doesn't need validation). @@ -9710,10 +9710,10 @@ addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint, Relation rel, * pkattnum is the attnum array of referenced attributes. * fkattnum is the attnum array of referencing attributes. * pf/pp/ffeqoperators are OID array of operators between columns. - * numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DELETE + * numfkdelsetcols is the number of columns in the ON DELETE SET NULL/DEFAULT * (...) clause * fkdelsetcols is the attnum array of the columns in the ON DELETE SET - * NULL/DELETE clause + * NULL/DEFAULT clause * old_check_ok signals that this constraint replaces an existing one that * was already validated (thus this one doesn't need validation). * lockmode is the lockmode to acquire on partitions when recursing.