aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2014-09-09 10:52:10 -0400
committerStephen Frost <sfrost@snowman.net>2014-09-09 10:59:34 -0400
commit106e4b29c0b1fdba36193bf38896d77fc28ea940 (patch)
tree7a52c41af02f6e40c1affa86091492aa0e057a55
parentfd66ccf7db638664a7867cc18e253d770c783d33 (diff)
downloadpostgresql-106e4b29c0b1fdba36193bf38896d77fc28ea940.tar.gz
postgresql-106e4b29c0b1fdba36193bf38896d77fc28ea940.zip
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.
-rw-r--r--src/backend/tcop/utility.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 18c74525fa0..d55d0955858 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -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;