From 5f4449b3ecacdc1ee5145058a4f45eaf2356f2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Prudent?= Date: Tue, 25 Jun 2024 08:07:55 +0200 Subject: [PATCH] Remove dead code --- src/backend/distributed/commands/alter_table.c | 13 ------------- 1 file changed, 13 deletions(-) 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);