We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e09c4 commit 314762bCopy full SHA for 314762b
contrib/pg_pathman/pg_pathman.c
@@ -16,6 +16,7 @@
16
#include "nodes/pg_list.h"
17
#include "nodes/relation.h"
18
#include "nodes/primnodes.h"
19
+#include "optimizer/clauses.h"
20
#include "optimizer/paths.h"
21
#include "optimizer/pathnode.h"
22
#include "optimizer/planner.h"
@@ -299,7 +300,7 @@ handle_modification_query(Query *parse)
299
300
301
/* Parse syntax tree and extract partition ranges */
302
ranges = list_make1_int(make_irange(0, prel->children_count - 1, false));
- wrap = walk_expr_tree( (Expr *) parse->jointree->quals, prel);
303
+ wrap = walk_expr_tree((Expr *) eval_const_expressions(NULL, parse->jointree->quals), prel);
304
wrappers = lappend(wrappers, wrap);
305
ranges = irange_list_intersect(ranges, wrap->rangeset);
306
0 commit comments