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
pull/7918/head
Cédric Villemain 2025-03-25 20:59:33 +01:00
parent 36c2c1634e
commit 880f91a3b6
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ PreprocessGrantStmt(Node *node, const char *queryString,
return NIL;
}
EnsureCoordinator();
/* deparse the privileges */
if (grantStmt->privileges == NIL)
{