Fixes postgres start error

grant_parameter_propagation
gurkanindibay 2024-01-17 12:51:48 +03:00
parent 15817ab924
commit 83079e46bc
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#include "pg_version_constants.h"
#if PG_VERSION_NUM >= PG_VERSION_15
#include "postgres.h"
#include "pg_version_constants.h"
#if PG_VERSION_NUM >= PG_VERSION_15
#include "access/genam.h"
#include "catalog/namespace.h"
#include "catalog/pg_parameter_acl.h"
@ -109,7 +109,7 @@ CheckPermissionsAndGrants(AclItem *aclItem, AclMode modes[], int numModes)
AclMode mode = modes[i];
if (!(grants & mode) || (permissions & mode))
{
ereport(ERROR, (errmsg("ACL item has no grant option for mode %lu", mode)));
ereport(ERROR, (errmsg("ACL item has no grant option for mode %u", mode)));
}
}
}

View File

@ -6,9 +6,10 @@
* -------------------------------------------------------------------------
*/
#include "postgres.h"
#include "pg_version_constants.h"
#if PG_VERSION_NUM >= PG_VERSION_15
#include "postgres.h"
#include "utils/builtins.h"