Skip to content

Commit

Permalink
Fix compilation error on PG11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed May 27, 2019
1 parent 0d3a77d commit 001f5d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/planner_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <nodes/nodeFuncs.h>
#include <optimizer/clauses.h>
#include <optimizer/cost.h>
#if PG_VERSION_NUM >= 110003
#if PG_VERSION_NUM >= 110002
#include <optimizer/paramassign.h>
#endif
#include <optimizer/placeholder.h>
Expand Down Expand Up @@ -885,7 +885,7 @@ replace_nestloop_params_mutator(Node *node, PlannerInfo *root)
if (IsA(node, Var))
{
Var *var = (Var *) node;
#if PG_VERSION_NUM < 110003
#if PG_VERSION_NUM < 110002
Param *param;
NestLoopParam *nlp;
ListCell *lc;
Expand All @@ -895,7 +895,7 @@ replace_nestloop_params_mutator(Node *node, PlannerInfo *root)
/* If not to be replaced, we can just return the Var unmodified */
if (!bms_is_member(var->varno, root->curOuterRels))
return node;
#if PG_VERSION_NUM < 110003
#if PG_VERSION_NUM < 110002
/* Create a Param representing the Var */
param = assign_nestloop_param_var(root, var);
/* Is this param already listed in root->curOuterParams? */
Expand Down Expand Up @@ -924,7 +924,7 @@ replace_nestloop_params_mutator(Node *node, PlannerInfo *root)
if (IsA(node, PlaceHolderVar))
{
PlaceHolderVar *phv = (PlaceHolderVar *) node;
#if PG_VERSION_NUM < 110003
#if PG_VERSION_NUM < 110002
Param *param;
NestLoopParam *nlp;
ListCell *lc;
Expand Down Expand Up @@ -962,7 +962,7 @@ replace_nestloop_params_mutator(Node *node, PlannerInfo *root)
newphv->phexpr = (Expr *) replace_nestloop_params_mutator((Node *) phv->phexpr, root);
return (Node *) newphv;
}
#if PG_VERSION_NUM < 110003
#if PG_VERSION_NUM < 110002
/* Create a Param representing the PlaceHolderVar */
param = assign_nestloop_param_placeholdervar(root, phv);
/* Is this param already listed in root->curOuterParams? */
Expand Down

0 comments on commit 001f5d9

Please sign in to comment.