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());
|
||||
|
||||
/*
|
||||
* 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 = lappend(commandList, BREAK_CITUS_TABLE_SEQUENCE_DEPENDENCY_COMMAND);
|
||||
commandList = lappend(commandList, REMOVE_ALL_SHELL_TABLES_COMMAND);
|
||||
|
||||
/*
|
||||
|
|
|
@ -195,11 +195,12 @@ GenerateBackupNameForCollision(const ObjectAddress *address)
|
|||
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
|
||||
errdetail(
|
||||
"unable to generate a backup name for the old type")));
|
||||
}
|
||||
}
|
||||
errdetail("unable to generate a backup name for the old type")));
|
||||
}
|
||||
|
||||
|
||||
|
@ -340,8 +341,10 @@ CreateRenameStatement(const ObjectAddress *address, char *newName)
|
|||
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
|
||||
errdetail("unable to generate a parsetree for the rename")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue