mirror of https://github.com/citusdata/citus.git
Don't take a table lock in ForeignConstraintGetReferencedTableId
parent
20612e3c6e
commit
0e2c52b531
|
@ -746,9 +746,8 @@ ForeignConstraintGetReferencedTableId(char *queryString)
|
|||
if (constraint->contype == CONSTR_FOREIGN)
|
||||
{
|
||||
RangeVar *referencedTable = constraint->pktable;
|
||||
LOCKMODE lockmode = AlterTableGetLockLevel(foreignConstraintStmt->cmds);
|
||||
|
||||
return RangeVarGetRelid(referencedTable, lockmode,
|
||||
return RangeVarGetRelid(referencedTable, NoLock,
|
||||
foreignConstraintStmt->missing_ok);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue