We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6bce6e commit 4c3d05dCopy full SHA for 4c3d05d
src/backend/commands/async.c
@@ -693,15 +693,8 @@ pg_listening_channels(PG_FUNCTION_ARGS)
693
/* stuff done only on the first call of the function */
694
if (SRF_IS_FIRSTCALL())
695
{
696
- MemoryContext oldcontext;
697
-
698
/* create a function context for cross-call persistence */
699
funcctx = SRF_FIRSTCALL_INIT();
700
701
- /* switch to memory context appropriate for multiple function calls */
702
- oldcontext = MemoryContextSwitchTo(funcctx->multi_call_memory_ctx);
703
704
- MemoryContextSwitchTo(oldcontext);
705
}
706
707
/* stuff done on every call of the function */
0 commit comments