mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Free memory allocated by command in the BlankPortal' HeapMemory context
(#ifdef-ed).
This commit is contained in:
		
							parent
							
								
									ef56e51cd3
								
							
						
					
					
						commit
						1a63f48b28
					
				| @ -7,7 +7,7 @@ | |||||||
|  * |  * | ||||||
|  * |  * | ||||||
|  * IDENTIFICATION |  * IDENTIFICATION | ||||||
|  *    $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.8 1997/03/14 23:18:16 scrappy Exp $ |  *    $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.9 1997/03/25 04:10:21 vadim Exp $ | ||||||
|  *	 |  *	 | ||||||
|  * NOTES |  * NOTES | ||||||
|  *	Transaction aborts can now occur two ways: |  *	Transaction aborts can now occur two ways: | ||||||
| @ -1017,10 +1017,18 @@ CommitTransactionCommand() | |||||||
| 	 *	someplace within a transaction block.  We increment the | 	 *	someplace within a transaction block.  We increment the | ||||||
| 	 *	command counter and return.  Someday we may free resources | 	 *	command counter and return.  Someday we may free resources | ||||||
| 	 *	local to the command. | 	 *	local to the command. | ||||||
|  | 	 * | ||||||
|  | 	 *	That someday is today, at least for memory allocated by | ||||||
|  | 	 *	command in the BlankPortal' HeapMemory context. | ||||||
|  | 	 *		- vadim 03/25/97 | ||||||
| 	 * ---------------- | 	 * ---------------- | ||||||
| 	 */ | 	 */ | ||||||
|     case TBLOCK_INPROGRESS: |     case TBLOCK_INPROGRESS: | ||||||
| 	CommandCounterIncrement(); | 	CommandCounterIncrement(); | ||||||
|  | #ifdef TBL_FREE_CMD_MEMORY | ||||||
|  | 	EndPortalAllocMode (); | ||||||
|  | 	StartPortalAllocMode (DefaultAllocMode, 0); | ||||||
|  | #endif	 | ||||||
| 	break; | 	break; | ||||||
| 	 | 	 | ||||||
| 	/* ----------------
 | 	/* ----------------
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user