diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-09-09 16:25:35 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-09-09 16:25:35 +0000 |
| commit | 5bc0d31ae8c84fc43210c66338c5e2f492b52e6b (patch) | |
| tree | 76e4e78c25424e850b2ea7e6e48a891b1b86a432 /src/include/utils | |
| parent | 8b8db01517bd688e35a70eb3a34fb0ce3c977085 (diff) | |
| download | postgresql-5bc0d31ae8c84fc43210c66338c5e2f492b52e6b.tar.gz | |
Repair incorrect cleanup of heap memory allocation during
transaction abort --- before it only worked if there was exactly one level
of allocation context stacked in the blank portal. Now it does the right
thing for any depth, including zero...
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/portal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h index cfaea911a5..c299f9a6d5 100644 --- a/src/include/utils/portal.h +++ b/src/include/utils/portal.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: portal.h,v 1.17 1999/07/15 23:04:23 momjian Exp $ + * $Id: portal.h,v 1.18 1999/09/09 16:25:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -75,6 +75,7 @@ extern Portal CreatePortal(char *name); extern void PortalDestroy(Portal *portalP); extern void StartPortalAllocMode(AllocMode mode, Size limit); extern void EndPortalAllocMode(void); +extern void PortalResetHeapMemory(Portal portal); extern PortalVariableMemory PortalGetVariableMemory(Portal portal); extern PortalHeapMemory PortalGetHeapMemory(Portal portal); |
