mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-03 11:17:19 +02:00
Move ALTER ... ALL IN to ProcessUtilitySlow
Now that ALTER TABLE .. ALL IN TABLESPACE has replaced the previous ALTER TABLESPACE approach, it makes sense to move the calls down in to ProcessUtilitySlow where the rest of ALTER TABLE is handled. This also means that event triggers will support ALTER TABLE .. ALL (which was the impetus for the original change, though it has other good qualities also). Álvaro Herrera Back-patch to 9.4 as the original rework was.
This commit is contained in:
parent
fd66ccf7db
commit
106e4b29c0
@ -506,10 +506,6 @@ standard_ProcessUtility(Node *parsetree,
|
||||
AlterTableSpaceOptions((AlterTableSpaceOptionsStmt *) parsetree);
|
||||
break;
|
||||
|
||||
case T_AlterTableMoveAllStmt:
|
||||
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
|
||||
break;
|
||||
|
||||
case T_TruncateStmt:
|
||||
ExecuteTruncate((TruncateStmt *) parsetree);
|
||||
break;
|
||||
@ -1291,6 +1287,10 @@ ProcessUtilitySlow(Node *parsetree,
|
||||
AlterTSConfiguration((AlterTSConfigurationStmt *) parsetree);
|
||||
break;
|
||||
|
||||
case T_AlterTableMoveAllStmt:
|
||||
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
|
||||
break;
|
||||
|
||||
case T_DropStmt:
|
||||
ExecDropStmt((DropStmt *) parsetree, isTopLevel);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user