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

Commit1a63f48

Browse files
committed
Free memory allocated by command in the BlankPortal' HeapMemory context
(#ifdef-ed).
1 parentef56e51 commit1a63f48

File tree

1 file changed

+9
-1
lines changed
  • src/backend/access/transam

1 file changed

+9
-1
lines changed

‎src/backend/access/transam/xact.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.8 1997/03/14 23:18:16 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.9 1997/03/25 04:10:21 vadim Exp $
1111
*
1212
* NOTES
1313
*Transaction aborts can now occur two ways:
@@ -1017,10 +1017,18 @@ CommitTransactionCommand()
10171017
*someplace within a transaction block. We increment the
10181018
*command counter and return. Someday we may free resources
10191019
*local to the command.
1020+
*
1021+
*That someday is today, at least for memory allocated by
1022+
*command in the BlankPortal' HeapMemory context.
1023+
*- vadim 03/25/97
10201024
* ----------------
10211025
*/
10221026
caseTBLOCK_INPROGRESS:
10231027
CommandCounterIncrement();
1028+
#ifdefTBL_FREE_CMD_MEMORY
1029+
EndPortalAllocMode ();
1030+
StartPortalAllocMode (DefaultAllocMode,0);
1031+
#endif
10241032
break;
10251033

10261034
/* ----------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp