Add break seq-table dependency

velioglu/wo_seq_test_1
Burak Velioglu 2022-01-24 23:54:17 +03:00
parent 8a3e92c569
commit c9681d5439
No known key found for this signature in database
GPG Key ID: F6827E620F6549C6
2 changed files with 11 additions and 6 deletions

View File

@ -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);
/*

View File

@ -195,11 +195,12 @@ GenerateBackupNameForCollision(const ObjectAddress *address)
default:
{
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
errdetail(
"unable to generate a backup name for the old type")));
break;
}
}
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:
{
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
errdetail("unable to generate a parsetree for the rename")));
break;
}
}
ereport(ERROR, (errmsg("unsupported object to construct a rename statement"),
errdetail("unable to generate a parsetree for the rename")));
}