Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 184ccff

Browse files
committed
Fix pull_var_clause call for 9.5
1 parent ffa33e7 commit 184ccff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/relation_info.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ refresh_pathman_relation_info(Oid relid,
187187
/* Extract Vars and varattnos of partitioning expression */
188188
prel->expr_vars = NIL;
189189
prel->expr_atts = NULL;
190-
prel->expr_vars = pull_var_clause(prel->expr, 0);
190+
prel->expr_vars = pull_var_clause_compat(prel->expr,
191+
PVC_REJECT_AGGREGATES,
192+
PVC_REJECT_PLACEHOLDERS);
191193
pull_varattnos((Node *) prel->expr_vars, PART_EXPR_VARNO, &prel->expr_atts);
192194

193195
MemoryContextSwitchTo(old_mcxt);

0 commit comments

Comments
 (0)