aboutsummaryrefslogtreecommitdiff
path: root/src
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:58:48 -0400
commitf0051c1a142ecaff7828b87315c26c7acbf8e583 (patch)
tree14f5deb974c81bf2abf808406abe131d8ab5f5c4 /src
parent50881036b17dc07cc61535d5bf27c56abaa4fbbb (diff)
downloadpostgresql-f0051c1a142ecaff7828b87315c26c7acbf8e583.tar.gz
postgresql-f0051c1a142ecaff7828b87315c26c7acbf8e583.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.
Diffstat (limited to 'src')
-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 40ac47f5c2d..e2c2d3d5589 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -507,10 +507,6 @@ standard_ProcessUtility(Node *parsetree,
AlterTableSpaceOptions((AlterTableSpaceOptionsStmt *) parsetree);
break;
- case T_AlterTableMoveAllStmt:
- AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
- break;
-
case T_TruncateStmt:
ExecuteTruncate((TruncateStmt *) parsetree);
break;
@@ -1296,6 +1292,10 @@ ProcessUtilitySlow(Node *parsetree,
AlterTSConfiguration((AlterTSConfigurationStmt *) parsetree);
break;
+ case T_AlterTableMoveAllStmt:
+ AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
+ break;
+
case T_DropStmt:
ExecDropStmt((DropStmt *) parsetree, isTopLevel);
break;