From da98c2a92f4457440b362525140631aaa853d64b Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Tue, 29 Nov 2022 08:04:00 +0100 Subject: [PATCH] Partition drop first --- src/backend/distributed/worker/worker_drop_protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/distributed/worker/worker_drop_protocol.c b/src/backend/distributed/worker/worker_drop_protocol.c index f4ed73ce8..6ccf439c4 100644 --- a/src/backend/distributed/worker/worker_drop_protocol.c +++ b/src/backend/distributed/worker/worker_drop_protocol.c @@ -189,7 +189,7 @@ WorkerDropDistributedTable(Oid relationId) PROCESS_UTILITY_QUERY, NULL, None_Receiver, NULL); } } - +#include "access/xact.h" /* * worker_drop_shell_table drops the shell table of with the given distributed @@ -256,7 +256,7 @@ worker_drop_shell_table(PG_FUNCTION_ARGS) performDeletion(distributedTableObject, DROP_CASCADE, PERFORM_DELETION_INTERNAL); - CommandCounterInrement(); + CommandCounterIncrement(); PG_RETURN_VOID(); }