Skip to content

Commit 09d9331

Browse files
committed
fix PartitionFilter (due to latest changes)
1 parent aa4213a commit 09d9331

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/partition_filter.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@ partition_filter_begin(CustomScanState *node, EState *estate, int eflags)
560560
}
561561
expr = PrelExpressionForRelid(prel, parent_varno);
562562

563+
/* HACK: protect expression from 'prel' invalidation */
564+
expr = copyObject(expr);
565+
563566
/* Prepare state for expression execution */
564567
old_mcxt = MemoryContextSwitchTo(estate->es_query_cxt);
565568
state->expr_state = ExecInitExpr((Expr *) expr, NULL);

0 commit comments

Comments
 (0)