Propogate ALTER TABLE ALL IN correctly to all nodes
authorPavan Deolasee <[email protected]>
Thu, 25 Jun 2015 06:35:51 +0000 (12:05 +0530)
committerPavan Deolasee <[email protected]>
Thu, 25 Jun 2015 06:35:51 +0000 (12:05 +0530)
src/backend/tcop/utility.c

index da13ac74176be3a7bd94b1a447aecfffe9edcc8e..974471432116978fd3746effc5d76c00f90ad3ff 100644 (file)
@@ -2462,6 +2462,10 @@ ProcessUtilitySlow(Node *parsetree,
 
                        case T_AlterTableMoveAllStmt:
                                AlterTableMoveAll((AlterTableMoveAllStmt *) parsetree);
+#ifdef PGXC
+                               if (IS_PGXC_LOCAL_COORDINATOR)
+                                       ExecUtilityStmtOnNodes(queryString, NULL, sentToRemote, false, EXEC_ON_ALL_NODES, false);
+#endif
                                /* commands are stashed in AlterTableMoveAll */
                                commandCollected = true;
                                break;