Commit f0051c1a authored by Stephen Frost's avatar Stephen Frost

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.
parent 50881036
...@@ -507,10 +507,6 @@ standard_ProcessUtility(Node *parsetree, ...@@ -507,10 +507,6 @@ standard_ProcessUtility(Node *parsetree,
AlterTableSpaceOptions((AlterTableSpaceOptionsStmt *) parsetree); AlterTableSpaceOptions((AlterTableSpaceOptionsStmt *) parsetree);
break; break;
case T_AlterTableMoveAllStmt:
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
break;
case T_TruncateStmt: case T_TruncateStmt:
ExecuteTruncate((TruncateStmt *) parsetree); ExecuteTruncate((TruncateStmt *) parsetree);
break; break;
...@@ -1296,6 +1292,10 @@ ProcessUtilitySlow(Node *parsetree, ...@@ -1296,6 +1292,10 @@ ProcessUtilitySlow(Node *parsetree,
AlterTSConfiguration((AlterTSConfigurationStmt *) parsetree); AlterTSConfiguration((AlterTSConfigurationStmt *) parsetree);
break; break;
case T_AlterTableMoveAllStmt:
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
break;
case T_DropStmt: case T_DropStmt:
ExecDropStmt((DropStmt *) parsetree, isTopLevel); ExecDropStmt((DropStmt *) parsetree, isTopLevel);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment