mirror of https://github.com/citusdata/citus.git
Fixes postgres 14 errors
parent
70f1420811
commit
1247c0d4b5
|
@ -4725,8 +4725,10 @@ PropagateNodeWideObjectsCommandList(void)
|
||||||
List *alterRoleSetCommands = GenerateAlterRoleSetCommandForRole(InvalidOid);
|
List *alterRoleSetCommands = GenerateAlterRoleSetCommandForRole(InvalidOid);
|
||||||
ddlCommands = list_concat(ddlCommands, alterRoleSetCommands);
|
ddlCommands = list_concat(ddlCommands, alterRoleSetCommands);
|
||||||
}
|
}
|
||||||
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
List *grantOnParameterCommands = GrantOnParameters();
|
List *grantOnParameterCommands = GrantOnParameters();
|
||||||
ddlCommands = list_concat(ddlCommands, grantOnParameterCommands);
|
ddlCommands = list_concat(ddlCommands, grantOnParameterCommands);
|
||||||
|
#endif /* PG_VERSION_NUM >= PG_VERSION_15 */
|
||||||
|
|
||||||
return ddlCommands;
|
return ddlCommands;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,10 @@
|
||||||
|
|
||||||
#include "nodes/parsenodes.h"
|
#include "nodes/parsenodes.h"
|
||||||
|
|
||||||
|
#if PG_VERSION_NUM >= PG_VERSION_15
|
||||||
extern List * GrantOnParameters(void);
|
extern List * GrantOnParameters(void);
|
||||||
|
#endif /* PG_VERSION_NUM >= PG_VERSION_15 */
|
||||||
|
|
||||||
extern char * GenerateSetRoleQuery(Oid roleOid);
|
extern char * GenerateSetRoleQuery(Oid roleOid);
|
||||||
extern GrantStmt * GenerateGrantStmtForRights(ObjectType objectType,
|
extern GrantStmt * GenerateGrantStmtForRights(ObjectType objectType,
|
||||||
Oid roleOid,
|
Oid roleOid,
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
--
|
||||||
|
-- PG15
|
||||||
|
--
|
||||||
|
SHOW server_version \gset
|
||||||
|
SELECT substring(:'server_version', '\d+')::int >= 15 AS server_version_ge_15
|
||||||
|
\gset
|
||||||
|
\if :server_version_ge_15
|
||||||
|
\else
|
||||||
|
\q
|
Loading…
Reference in New Issue