1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Reversed out Massimo patch.

This commit is contained in:
Bruce Momjian
1999-06-12 14:07:33 +00:00
parent 603e153bb8
commit 0c3281ce7c
6 changed files with 14 additions and 111 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.20 1999/06/12 14:05:39 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.21 1999/06/12 14:07:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -289,24 +289,6 @@ PortalHeapMemoryFree(PortalHeapMemory this,
}
}
#ifdef FREE_TUPLE_MEMORY
/*
* PortalHeapMemoryIsValid --
*
* Check if a pointer is allocated in a memory context.
*
*/
bool
PortalHeapMemoryIsValid(MemoryContext context, Pointer pointer)
{
HeapMemoryBlock block = HEAPMEMBLOCK((PortalHeapMemory) context);
AssertState(PointerIsValid(block));
return (AllocSetContains(&block->setData, pointer));
}
#endif
/* ----------------
* PortalHeapMemoryRealloc
* ----------------