mirror of https://github.com/citusdata/citus.git
Use contype to check for FK constraint instead of reading catalog table
parent
6d0fbbace7
commit
e23625bf5e
|
@ -615,7 +615,7 @@ multi_ProcessUtility(PlannedStmt *pstmt,
|
|||
}
|
||||
|
||||
constraint = (Constraint *) command->def;
|
||||
if (ConstraintIsAForeignKey(constraint->conname, relationId))
|
||||
if (constraint->contype == CONSTR_FOREIGN)
|
||||
{
|
||||
InvalidateForeignKeyGraph();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue