diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-07-15 23:27:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-07-15 23:27:13 -0400 |
commit | 4c3d05d875dd173a81a995c6e14d69496b467eec (patch) | |
tree | 035c2435919653de4397958db02771aeff5f306d /src/backend/commands/async.c | |
parent | c6bce6ebb668c7da03d01244d34cac0335561103 (diff) | |
download | postgresql-4c3d05d875dd173a81a995c6e14d69496b467eec.tar.gz postgresql-4c3d05d875dd173a81a995c6e14d69496b467eec.zip |
Remove dead code.
These memory context switches are useless in the wake of commit
1cff1b95a. Noted by Jesper Pedersen.
Discussion: https://postgr.es/m/f078ce63-9e04-0f3e-d200-d7ee66279abe@redhat.com
Diffstat (limited to 'src/backend/commands/async.c')
-rw-r--r-- | src/backend/commands/async.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index 34e5ca9edb3..6e9c580ec6d 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -693,15 +693,8 @@ pg_listening_channels(PG_FUNCTION_ARGS) /* stuff done only on the first call of the function */ if (SRF_IS_FIRSTCALL()) { - MemoryContext oldcontext; - /* create a function context for cross-call persistence */ funcctx = SRF_FIRSTCALL_INIT(); - - /* switch to memory context appropriate for multiple function calls */ - oldcontext = MemoryContextSwitchTo(funcctx->multi_call_memory_ctx); - - MemoryContextSwitchTo(oldcontext); } /* stuff done on every call of the function */ |