Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58ef2a5

Browse files
committed
Copy and calculate in per tuple memory context
1 parente37bec3 commit58ef2a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/partition_filter.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,15 +632,15 @@ partition_filter_exec(CustomScanState *node)
632632
returnslot;
633633
}
634634

635+
/* Switch to per-tuple context */
636+
old_cxt=MemoryContextSwitchTo(GetPerTupleMemoryContext(estate));
637+
635638
/* Prepare walker context */
636-
expr_walker_context.prel=prel;/* maybe slot will be enough */
639+
expr_walker_context.prel=prel;
637640
expr_walker_context.slot=slot;
638641
expr_walker_context.tup=ExecCopySlotTuple(slot);
639642
expr_walker_context.clear= false;
640643

641-
/* Switch to per-tuple context */
642-
old_cxt=MemoryContextSwitchTo(GetPerTupleMemoryContext(estate));
643-
644644
/* Fetch values from slot for expression */
645645
adapt_values((Node*)prel->expr, (void*)&expr_walker_context);
646646

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp