mirror of https://github.com/citusdata/citus.git
Introduces pg_get_statisticsobj_worker_compat macro
Relevant PG commit: a4d75c86bf15220df22de0a92c819ecef9db3849pull/5209/head
parent
f16d5e1833
commit
7823e49219
|
@ -442,7 +442,7 @@ GetExplicitStatisticsCommandList(Oid relationId)
|
|||
foreach_oid(statisticsId, statisticsIdList)
|
||||
{
|
||||
/* we need create commands for already created stats before distribution */
|
||||
char *createStatisticsCommand = pg_get_statisticsobj_worker(statisticsId,
|
||||
char *createStatisticsCommand = pg_get_statisticsobj_worker_compat(statisticsId,
|
||||
false, false);
|
||||
|
||||
explicitStatisticsCommandList =
|
||||
|
|
|
@ -50,8 +50,12 @@ char * pg_get_rule_expr(Node *expression);
|
|||
extern void deparse_shard_query(Query *query, Oid distrelid, int64 shardid,
|
||||
StringInfo buffer);
|
||||
extern char * pg_get_triggerdef_command(Oid triggerId);
|
||||
#if PG_VERSION_NUM >= PG_VERSION_14
|
||||
extern char * pg_get_statisticsobj_worker(Oid statextid, bool columns_only,
|
||||
bool missing_ok);
|
||||
#else
|
||||
extern char * pg_get_statisticsobj_worker(Oid statextid, bool missing_ok);
|
||||
#endif
|
||||
extern char * generate_relation_name(Oid relid, List *namespaces);
|
||||
extern char * generate_qualified_relation_name(Oid relid);
|
||||
extern char * generate_operator_name(Oid operid, Oid arg1, Oid arg2);
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
#define RelationGetPartitionDesc_compat(a, b) RelationGetPartitionDesc(a, b)
|
||||
#define make_simple_restrictinfo_compat(a, b) make_simple_restrictinfo(a, b)
|
||||
#define pull_varnos_compat(a, b) pull_varnos(a, b)
|
||||
#define pg_get_statisticsobj_worker_compat(a, b, c) pg_get_statisticsobj_worker(a, b, c)
|
||||
#else
|
||||
#define AlterTableStmtObjType(a) ((a)->relkind)
|
||||
#define F_NEXTVAL_COMPAT F_NEXTVAL_OID
|
||||
|
@ -98,6 +99,7 @@
|
|||
#define PQ_LARGE_MESSAGE_LIMIT 0
|
||||
#define make_simple_restrictinfo_compat(a, b) make_simple_restrictinfo(b)
|
||||
#define pull_varnos_compat(a, b) pull_varnos(b)
|
||||
#define pg_get_statisticsobj_worker_compat(a, b, c) pg_get_statisticsobj_worker(a, c)
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM >= PG_VERSION_13
|
||||
|
|
Loading…
Reference in New Issue