Don't take a table lock in ForeignConstraintGetReferencedTableId

release-6.1
Marco Slot 2017-05-31 11:15:21 +02:00 committed by Andres Freund
parent 20612e3c6e
commit 0e2c52b531
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}