From 880f91a3b6cfdff69787476f48c30b6d705d1071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Villemain?= Date: Tue, 25 Mar 2025 20:59:33 +0100 Subject: [PATCH] EnsureCoordinator() for GRANT on TABLE propagation In the table/table(attribute) cases, we didn't checked if the command was run from the Coordinator. Add the check where suggested by @naisila in https://github.com/citusdata/citus/pull/7918#pullrequestreview-2702649595 --- src/backend/distributed/commands/grant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/distributed/commands/grant.c b/src/backend/distributed/commands/grant.c index 1f1477281..3cc18c155 100644 --- a/src/backend/distributed/commands/grant.c +++ b/src/backend/distributed/commands/grant.c @@ -70,6 +70,8 @@ PreprocessGrantStmt(Node *node, const char *queryString, return NIL; } + EnsureCoordinator(); + /* deparse the privileges */ if (grantStmt->privileges == NIL) {