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

pull/2313/head
velioglu 2018-07-20 09:52:43 +03:00 committed by mehmet furkan şahin
parent 5ab0bc8c0a
commit af31f74cd1
1 changed files with 1 additions and 1 deletions

View File

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