mirror of https://github.com/citusdata/citus.git
Fixes postgres start error
parent
15817ab924
commit
83079e46bc
|
@ -1,7 +1,7 @@
|
||||||
#include "pg_version_constants.h"
|
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_15
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
#include "pg_version_constants.h"
|
||||||
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
#include "access/genam.h"
|
#include "access/genam.h"
|
||||||
#include "catalog/namespace.h"
|
#include "catalog/namespace.h"
|
||||||
#include "catalog/pg_parameter_acl.h"
|
#include "catalog/pg_parameter_acl.h"
|
||||||
|
@ -109,7 +109,7 @@ CheckPermissionsAndGrants(AclItem *aclItem, AclMode modes[], int numModes)
|
||||||
AclMode mode = modes[i];
|
AclMode mode = modes[i];
|
||||||
if (!(grants & mode) || (permissions & mode))
|
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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
* -------------------------------------------------------------------------
|
* -------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "postgres.h"
|
||||||
|
|
||||||
#include "pg_version_constants.h"
|
#include "pg_version_constants.h"
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_15
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
#include "postgres.h"
|
|
||||||
|
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue