Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c3d05d

Browse files
committed
Remove dead code.
These memory context switches are useless in the wake of commit1cff1b9. Noted by Jesper Pedersen.Discussion:https://postgr.es/m/f078ce63-9e04-0f3e-d200-d7ee66279abe@redhat.com
1 parentc6bce6e commit4c3d05d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

‎src/backend/commands/async.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -693,15 +693,8 @@ pg_listening_channels(PG_FUNCTION_ARGS)
693693
/* stuff done only on the first call of the function */
694694
if (SRF_IS_FIRSTCALL())
695695
{
696-
MemoryContextoldcontext;
697-
698696
/* create a function context for cross-call persistence */
699697
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);
705698
}
706699

707700
/* stuff done on every call of the function */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp