Skip to content

Commit f173e40

Browse files
committed
clean context using ResetExprContext
1 parent cccc65c commit f173e40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime_merge_append.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "optimizer/var.h"
2121
#include "miscadmin.h"
2222
#include "utils/lsyscache.h"
23+
#include "utils/memutils.h"
2324

2425
#include "lib/binaryheap.h"
2526

@@ -347,6 +348,8 @@ runtimemergeappend_exec(CustomScanState *node)
347348
quals = ExecQual(rstate->custom_expr_states,
348349
node->ss.ps.ps_ExprContext, false);
349350

351+
ResetExprContext(node->ss.ps.ps_ExprContext);
352+
350353
if (quals)
351354
{
352355
binaryheap_replace_first(scan_state->ms_heap, Int32GetDatum(i));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy