Skip to content

Commit 017dfe9

Browse files
author
hackorum
committed
Apply remove_ctx_switch.patch
1 parent 31878cc commit 017dfe9

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎contrib/postgres_fdw/postgres_fdw.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,16 +4066,10 @@ create_cursor(ForeignScanState *node)
40664066
*/
40674067
if (numParams > 0)
40684068
{
4069-
MemoryContext oldcontext;
4070-
4071-
oldcontext = MemoryContextSwitchTo(econtext->ecxt_per_tuple_memory);
4072-
40734069
process_query_params(econtext,
40744070
fsstate->param_flinfo,
40754071
fsstate->param_exprs,
40764072
values);
4077-
4078-
MemoryContextSwitchTo(oldcontext);
40794073
}
40804074

40814075
/* Construct the DECLARE CURSOR command */

0 commit comments

Comments
 (0)