Skip to content

Commit 106e4b2

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 fd66ccf commit 106e4b2

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
@@ -506,10 +506,6 @@ standard_ProcessUtility(Node *parsetree,
506506
AlterTableSpaceOptions((AlterTableSpaceOptionsStmt *) parsetree);
507507
break;
508508

509-
case T_AlterTableMoveAllStmt:
510-
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
511-
break;
512-
513509
case T_TruncateStmt:
514510
ExecuteTruncate((TruncateStmt *) parsetree);
515511
break;
@@ -1291,6 +1287,10 @@ ProcessUtilitySlow(Node *parsetree,
12911287
AlterTSConfiguration((AlterTSConfigurationStmt *) parsetree);
12921288
break;
12931289

1290+
case T_AlterTableMoveAllStmt:
1291+
AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
1292+
break;
1293+
12941294
case T_DropStmt:
12951295
ExecDropStmt((DropStmt *) parsetree, isTopLevel);
12961296
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy