mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
pgindent run for 9.0
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/lockcmds.c,v 1.28 2010/02/20 21:24:02 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/lockcmds.c,v 1.29 2010/02/26 02:00:39 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -48,11 +48,10 @@ LockTableCommand(LockStmt *lockstmt)
|
||||
reloid = RangeVarGetRelid(relation, false);
|
||||
|
||||
/*
|
||||
* During recovery we only accept these variations:
|
||||
* LOCK TABLE foo IN ACCESS SHARE MODE
|
||||
* LOCK TABLE foo IN ROW SHARE MODE
|
||||
* LOCK TABLE foo IN ROW EXCLUSIVE MODE
|
||||
* This test must match the restrictions defined in LockAcquire()
|
||||
* During recovery we only accept these variations: LOCK TABLE foo IN
|
||||
* ACCESS SHARE MODE LOCK TABLE foo IN ROW SHARE MODE LOCK TABLE foo
|
||||
* IN ROW EXCLUSIVE MODE This test must match the restrictions defined
|
||||
* in LockAcquire()
|
||||
*/
|
||||
if (lockstmt->mode > RowExclusiveLock)
|
||||
PreventCommandDuringRecovery("LOCK TABLE");
|
||||
|
Reference in New Issue
Block a user