Skip to content

Commit f0051c1

Browse files
committed
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.
1 parent 5088103 commit f0051c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/tcop/utility.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,6 @@ standard_ProcessUtility(Node *parsetree,
507507
AlterTableSpaceOptions((AlterTableSpaceOptionsStmt *) parsetree);
508508
break;
509509

510-
case T_AlterTableMoveAllStmt:
511-
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
512-
break;
513-
514510
case T_TruncateStmt:
515511
ExecuteTruncate((TruncateStmt *) parsetree);
516512
break;
@@ -1296,6 +1292,10 @@ ProcessUtilitySlow(Node *parsetree,
12961292
AlterTSConfiguration((AlterTSConfigurationStmt *) parsetree);
12971293
break;
12981294

1295+
case T_AlterTableMoveAllStmt:
1296+
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
1297+
break;
1298+
12991299
case T_DropStmt:
13001300
ExecDropStmt((DropStmt *) parsetree, isTopLevel);
13011301
break;

0 commit comments

Comments
 (0)