Don't take a table lock in ForeignConstraintGetReferencedTableId

pull/1438/head
Marco Slot 2017-05-31 11:15:21 +02:00
parent 0e3369a863
commit f1d804180b
1 changed files with 1 additions and 2 deletions

View File

@ -763,9 +763,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);
}
}