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:
@@ -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
|
||||
* ----------------
|
||||
|
||||
Reference in New Issue
Block a user