1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-16 15:02:33 +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

@@ -73,9 +73,6 @@ static char *opt_names[] = {
"syslog", /* use syslog for error messages */
"hostlookup", /* enable hostname lookup in ps_status */
"showportnumber", /* show port number in ps_status */
#ifdef FREE_TUPLE_MEMORY
"free_tuple_memory", /* try to pfree memory for each tuple */
#endif
/* NUM_PG_OPTIONS */ /* must be the last item of enum */
};
@@ -407,9 +404,9 @@ read_pg_options(SIGNAL_ARGS)
}
/*
* Local Variables:
* tab-width: 4
* c-indent-level: 4
* c-basic-offset: 4
* Local variables:
* tab-width: 4
* c-indent-level: 4
* c-basic-offset: 4
* End:
*/

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
* ----------------