From 3c9aa360f56dc705b6ae4d1bfdd858d0f2c48436 Mon Sep 17 00:00:00 2001 From: Burak Velioglu Date: Sun, 23 Jan 2022 00:01:02 +0300 Subject: [PATCH] Change detachpartition nodewide object commands --- src/backend/distributed/metadata/node_metadata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/distributed/metadata/node_metadata.c b/src/backend/distributed/metadata/node_metadata.c index f9ab89522..848990332 100644 --- a/src/backend/distributed/metadata/node_metadata.c +++ b/src/backend/distributed/metadata/node_metadata.c @@ -746,17 +746,17 @@ SyncObjectDependenciesCommandList(WorkerNode *workerNode) { List *commandList = NIL; + /* + * Propagate node wide objects. It includes only roles for now. + */ + commandList = list_concat(commandList, PropagateNodeWideObjectsCommandList()); + /* * Detach partitions and remove shell tables first. */ commandList = list_concat(commandList, DetachPartitionCommandList()); commandList = lappend(commandList, REMOVE_ALL_SHELL_TABLES_COMMAND); - /* - * Propagate node wide objects. It includes only roles for now. - */ - commandList = list_concat(commandList, PropagateNodeWideObjectsCommandList()); - /* * Replicate all objects of the pg_dist_object to the remote node. */