diff --git a/src/backend/distributed/worker/worker_drop_protocol.c b/src/backend/distributed/worker/worker_drop_protocol.c index 23b6db021..f5d443f49 100644 --- a/src/backend/distributed/worker/worker_drop_protocol.c +++ b/src/backend/distributed/worker/worker_drop_protocol.c @@ -98,6 +98,8 @@ worker_drop_distributed_table(PG_FUNCTION_ARGS) UnmarkObjectDistributed(&ownedSequenceAddress); } + UnmarkObjectDistributed(&distributedTableObject); + /* drop the server for the foreign relations */ if (relationKind == RELKIND_FOREIGN_TABLE) {