mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
First phase of memory management rewrite (see backend/utils/mmgr/README
for details). It doesn't really do that much yet, since there are no short-term memory contexts in the executor, but the infrastructure is in place and long-term contexts are handled reasonably. A few long- standing bugs have been fixed, such as 'VACUUM; anything' in a single query string crashing. Also, out-of-memory is now considered a recoverable ERROR, not FATAL. Eliminate a large amount of crufty, now-dead code in and around memory management. Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and backend startup.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* WIN1250 client encoding support contributed by Pavel Behal
|
||||
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
|
||||
*
|
||||
* $Id: conv.c,v 1.15 2000/05/20 13:12:26 ishii Exp $
|
||||
* $Id: conv.c,v 1.16 2000/06/28 03:32:45 tgl Exp $
|
||||
*
|
||||
*
|
||||
*/
|
||||
@@ -1521,7 +1521,8 @@ pg_encoding_conv_tbl pg_conv_tbl[] = {
|
||||
};
|
||||
|
||||
#ifdef DEBUGMAIN
|
||||
#include "utils/mcxt.h"
|
||||
#include "postgres.h"
|
||||
#include "utils/memutils.h"
|
||||
/*
|
||||
* testing for sjis2mic() and mic2sjis()
|
||||
*/
|
||||
@@ -1565,21 +1566,23 @@ main()
|
||||
void
|
||||
elog(int lev, const char *fmt,...)
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
MemoryContext CurrentMemoryContext;
|
||||
Pointer
|
||||
|
||||
void *
|
||||
MemoryContextAlloc(MemoryContext context, Size size)
|
||||
{
|
||||
};
|
||||
Pointer
|
||||
MemoryContextRealloc(MemoryContext context,
|
||||
Pointer pointer,
|
||||
Size size)
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
void
|
||||
MemoryContextFree(MemoryContext context, Pointer pointer)
|
||||
pfree(void *pointer)
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
void *
|
||||
repalloc(void *pointer, Size size)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user