diff --git a/src/backend/distributed/commands/alter_table.c b/src/backend/distributed/commands/alter_table.c index 030dbbe78..e4616d32e 100644 --- a/src/backend/distributed/commands/alter_table.c +++ b/src/backend/distributed/commands/alter_table.c @@ -738,7 +738,6 @@ ConvertTableInternal(TableConversionState *con) includeIndexes, includeReplicaIdentity); List *justBeforeDropCommands = NIL; - List *attachPartitionCommands = NIL; List *createViewCommands = GetViewCreationCommandsOfTable(con->relationId); @@ -964,18 +963,6 @@ ConvertTableInternal(TableConversionState *con) ALLOCSET_DEFAULT_SIZES); MemoryContext oldContext = MemoryContextSwitchTo(citusPerPartitionContext); - char *attachPartitionCommand = NULL; - foreach_ptr(attachPartitionCommand, attachPartitionCommands) - { - MemoryContextReset(citusPerPartitionContext); - - Node *parseTree = ParseTreeNode(attachPartitionCommand); - - ProcessUtilityParseTree(parseTree, attachPartitionCommand, - PROCESS_UTILITY_QUERY, - NULL, None_Receiver, NULL); - } - MemoryContextSwitchTo(oldContext); MemoryContextDelete(citusPerPartitionContext);