mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Reduce lock levels of some ALTER TABLE cmds
VALIDATE CONSTRAINT CLUSTER ON SET WITHOUT CLUSTER ALTER COLUMN SET STATISTICS ALTER COLUMN SET () ALTER COLUMN RESET () All other sub-commands use AccessExclusiveLock Simon Riggs and Noah Misch Reviews by Robert Haas and Andres Freund
This commit is contained in:
@@ -908,7 +908,7 @@ ProcessUtilitySlow(Node *parsetree,
|
||||
InvalidOid);
|
||||
|
||||
/*
|
||||
* Let AlterTableCreateToastTable decide if this
|
||||
* Let NewRelationCreateToastTable decide if this
|
||||
* one needs a secondary relation too.
|
||||
*/
|
||||
CommandCounterIncrement();
|
||||
@@ -927,7 +927,7 @@ ProcessUtilitySlow(Node *parsetree,
|
||||
toast_options,
|
||||
true);
|
||||
|
||||
AlterTableCreateToastTable(relOid, toast_options);
|
||||
NewRelationCreateToastTable(relOid, toast_options);
|
||||
}
|
||||
else if (IsA(stmt, CreateForeignTableStmt))
|
||||
{
|
||||
|
Reference in New Issue
Block a user