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

Commit0ddede5

Browse files
committed
Remove inappropriate memory context switch in shutdown_MultiFuncCall().
This was a thinko introduced in a patch from last February; it resultsin memory leakage if an SRF is shut down before the actual end of query,because subsequent code will be running in a longer-lived context thanit's expecting to be.
1 parent0a2cdbc commit0ddede5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/backend/utils/fmgr/funcapi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 2002-2008, PostgreSQL Global Development Group
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/fmgr/funcapi.c,v 1.42 2008/08/25 22:42:34 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/fmgr/funcapi.c,v 1.43 2008/11/30 18:49:36 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -182,7 +182,6 @@ shutdown_MultiFuncCall(Datum arg)
182182
* Delete context that holds all multi-call data, including the
183183
* FuncCallContext itself
184184
*/
185-
MemoryContextSwitchTo(flinfo->fn_mcxt);
186185
MemoryContextDelete(funcctx->multi_call_memory_ctx);
187186
}
188187

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp