mirror of https://github.com/citusdata/citus.git
Remove dead code
parent
aaaf637a6b
commit
5f4449b3ec
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue