mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgindent run before PG 9.1 beta 1.
This commit is contained in:
@ -241,9 +241,9 @@ DefineQueryRewrite(char *rulename,
|
||||
/*
|
||||
* If we are installing an ON SELECT rule, we had better grab
|
||||
* AccessExclusiveLock to ensure no SELECTs are currently running on the
|
||||
* event relation. For other types of rules, it is sufficient to
|
||||
* grab ShareRowExclusiveLock to lock out insert/update/delete actions
|
||||
* and to ensure that we lock out current CREATE RULE statements.
|
||||
* event relation. For other types of rules, it is sufficient to grab
|
||||
* ShareRowExclusiveLock to lock out insert/update/delete actions and to
|
||||
* ensure that we lock out current CREATE RULE statements.
|
||||
*/
|
||||
if (event_type == CMD_SELECT)
|
||||
event_relation = heap_open(event_relid, AccessExclusiveLock);
|
||||
|
Reference in New Issue
Block a user