File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -632,15 +632,15 @@ partition_filter_exec(CustomScanState *node)
632
632
return slot ;
633
633
}
634
634
635
+ /* Switch to per-tuple context */
636
+ old_cxt = MemoryContextSwitchTo (GetPerTupleMemoryContext (estate ));
637
+
635
638
/* Prepare walker context */
636
- expr_walker_context .prel = prel ; /* maybe slot will be enough */
639
+ expr_walker_context .prel = prel ;
637
640
expr_walker_context .slot = slot ;
638
641
expr_walker_context .tup = ExecCopySlotTuple (slot );
639
642
expr_walker_context .clear = false;
640
643
641
- /* Switch to per-tuple context */
642
- old_cxt = MemoryContextSwitchTo (GetPerTupleMemoryContext (estate ));
643
-
644
644
/* Fetch values from slot for expression */
645
645
adapt_values ((Node * )prel -> expr , (void * ) & expr_walker_context );
646
646
You can’t perform that action at this time.
0 commit comments