Don't take a table lock in ForeignConstraintGetReferencedTableId

pull/1492/head
Marco Slot 2017-05-31 11:15:21 +02:00 committed by Andres Freund
parent aa2d2f46f4
commit fd05849eff
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);
}
}