Skip to content

Commit f645ed7

Browse files
committed
call ResetExprContext after each ExecQual
1 parent b127837 commit f645ed7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtimeappend.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* ------------------------------------------------------------------------
99
*/
1010
#include "postgres.h"
11+
#include "utils/memutils.h"
1112
#include "runtimeappend.h"
1213
#include "pathman.h"
1314

@@ -82,6 +83,8 @@ runtimeappend_exec(CustomScanState *node)
8283
quals = ExecQual(scan_state->custom_expr_states,
8384
node->ss.ps.ps_ExprContext, false);
8485

86+
ResetExprContext(node->ss.ps.ps_ExprContext);
87+
8588
if (quals)
8689
return slot;
8790
}

0 commit comments

Comments
 (0)