Remove dead code

pull/7634/head
Jérôme Prudent 2024-06-25 08:07:55 +02:00
parent aaaf637a6b
commit 5f4449b3ec
1 changed files with 0 additions and 13 deletions

View File

@ -738,7 +738,6 @@ ConvertTableInternal(TableConversionState *con)
includeIndexes, includeIndexes,
includeReplicaIdentity); includeReplicaIdentity);
List *justBeforeDropCommands = NIL; List *justBeforeDropCommands = NIL;
List *attachPartitionCommands = NIL;
List *createViewCommands = GetViewCreationCommandsOfTable(con->relationId); List *createViewCommands = GetViewCreationCommandsOfTable(con->relationId);
@ -964,18 +963,6 @@ ConvertTableInternal(TableConversionState *con)
ALLOCSET_DEFAULT_SIZES); ALLOCSET_DEFAULT_SIZES);
MemoryContext oldContext = MemoryContextSwitchTo(citusPerPartitionContext); 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); MemoryContextSwitchTo(oldContext);
MemoryContextDelete(citusPerPartitionContext); MemoryContextDelete(citusPerPartitionContext);