From 257cccbe5ea9f20988ddaa6654a6b1ccf1925620 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 16 Sep 2004 20:17:49 +0000 Subject: 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. --- src/include/nodes/memnodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/nodes') 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); -- cgit v1.2.3