Use contype to check for FK constraint instead of reading catalog table

pull/2296/head
velioglu 2018-07-20 09:52:43 +03:00 committed by mehmet furkan şahin
parent 6d0fbbace7
commit e23625bf5e
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ multi_ProcessUtility(PlannedStmt *pstmt,
}
constraint = (Constraint *) command->def;
if (ConstraintIsAForeignKey(constraint->conname, relationId))
if (constraint->contype == CONSTR_FOREIGN)
{
InvalidateForeignKeyGraph();
}