mirror of https://github.com/citusdata/citus.git
Add break seq-table dependency
parent
8a3e92c569
commit
c9681d5439
|
@ -752,9 +752,11 @@ SyncObjectDependenciesCommandList(WorkerNode *workerNode)
|
||||||
commandList = list_concat(commandList, PropagateNodeWideObjectsCommandList());
|
commandList = list_concat(commandList, PropagateNodeWideObjectsCommandList());
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Detach partitions and remove shell tables first.
|
* Detach partitions, break dependencies between sequences and table then
|
||||||
|
* remove shell tables first.
|
||||||
*/
|
*/
|
||||||
commandList = list_concat(commandList, DetachPartitionCommandList());
|
commandList = list_concat(commandList, DetachPartitionCommandList());
|
||||||
|
commandList = lappend(commandList, BREAK_CITUS_TABLE_SEQUENCE_DEPENDENCY_COMMAND);
|
||||||
commandList = lappend(commandList, REMOVE_ALL_SHELL_TABLES_COMMAND);
|
commandList = lappend(commandList, REMOVE_ALL_SHELL_TABLES_COMMAND);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -195,11 +195,12 @@ GenerateBackupNameForCollision(const ObjectAddress *address)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
|
break;
|
||||||
errdetail(
|
|
||||||
"unable to generate a backup name for the old type")));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
|
||||||
|
errdetail("unable to generate a backup name for the old type")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -340,8 +341,10 @@ CreateRenameStatement(const ObjectAddress *address, char *newName)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
|
break;
|
||||||
errdetail("unable to generate a parsetree for the rename")));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
|
||||||
|
errdetail("unable to generate a parsetree for the rename")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue