diff --git a/src/backend/distributed/commands/parameter.c b/src/backend/distributed/commands/parameter.c index 8e82f8e0b..5ea10c53b 100644 --- a/src/backend/distributed/commands/parameter.c +++ b/src/backend/distributed/commands/parameter.c @@ -109,7 +109,11 @@ CheckPermissionsAndGrants(AclItem *aclItem, AclMode modes[], int numModes) AclMode mode = modes[i]; if (!(grants & mode) || (permissions & mode)) { +#if PG_VERSION_NUM >= PG_VERSION_16 + ereport(ERROR, (errmsg("ACL item has no grant option for mode %lu", mode))); +#else ereport(ERROR, (errmsg("ACL item has no grant option for mode %u", mode))); +#endif } } }