diff options
| author | Tom Lane | 2004-09-16 20:17:49 +0000 |
|---|---|---|
| committer | Tom Lane | 2004-09-16 20:17:49 +0000 |
| commit | 257cccbe5ea9f20988ddaa6654a6b1ccf1925620 (patch) | |
| tree | f5e709101e23e82c1a6136a95c3684f472919bdb /src/include/nodes | |
| parent | 86fff990b2acdbbfaf4340636878313fe270c916 (diff) | |
Add some marginal tweaks to eliminate memory leakages associated with
subtransactions. Trivial subxacts (such as a plpgsql exception block
containing no database access) now demonstrably leak zero bytes.
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/memnodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/memnodes.h b/src/include/nodes/memnodes.h index 1fc13af47f7..e57ee2aad27 100644 --- a/src/include/nodes/memnodes.h +++ b/src/include/nodes/memnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/memnodes.h,v 1.28 2004/08/29 04:13:07 momjian Exp $ + * $PostgreSQL: pgsql/src/include/nodes/memnodes.h,v 1.29 2004/09/16 20:17:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -43,6 +43,7 @@ typedef struct MemoryContextMethods void (*reset) (MemoryContext context); void (*delete) (MemoryContext context); Size (*get_chunk_space) (MemoryContext context, void *pointer); + bool (*is_empty) (MemoryContext context); void (*stats) (MemoryContext context); #ifdef MEMORY_CONTEXT_CHECKING void (*check) (MemoryContext context); |
