From 43e6683f82a225d3d539cb41d53b9a868fce34ee Mon Sep 17 00:00:00 2001 From: Ildar Musin Date: Mon, 14 Nov 2016 16:40:57 +0300 Subject: [PATCH] pgpro 1c patch support --- src/pg_compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pg_compat.h b/src/pg_compat.h index 7bef6778..977fed8c 100644 --- a/src/pg_compat.h +++ b/src/pg_compat.h @@ -35,8 +35,13 @@ extern void copy_targetlist_compat(RelOptInfo *dest, RelOptInfo *rel); #define check_index_predicates_compat(rool, rel) \ check_index_predicates(root, rel) +#ifndef PGPRO_VERSION #define create_append_path_compat(rel, subpaths, required_outer, parallel_workers) \ create_append_path(rel, subpaths, required_outer, parallel_workers) +#else +#define create_append_path_compat(rel, subpaths, required_outer, parallel_workers) \ + create_append_path(rel, subpaths, required_outer, false, NIL, parallel_workers) +#endif #define pull_var_clause_compat(node, aggbehavior, phbehavior) \ pull_var_clause(node, aggbehavior | phbehavior)