OSDN Git Service

Tweak default memory context allocation policy so that a context is not
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Dec 2002 21:01:34 +0000 (21:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Dec 2002 21:01:34 +0000 (21:01 +0000)
commite64c7feb2fd80c89d2220cbe9e026a031f34509c
treeb7842bbf8efc3b7849b29c8a1b67a4a196f9ee2e
parent5bab36e9f6c3f3a9e14a89e1124179a339d2c3a1
Tweak default memory context allocation policy so that a context is not
given any malloc block until something is first allocated in it; but
thereafter, MemoryContextReset won't release that first malloc block.
This preserves the quick-reset property of the original policy, without
forcing 8K to be allocated to every context whether any of it is ever
used or not.  Also, remove some more no-longer-needed explicit freeing
during ExecEndPlan.
src/backend/commands/prepare.c
src/backend/commands/trigger.c
src/backend/executor/execJunk.c
src/backend/executor/execMain.c
src/backend/executor/spi.c
src/backend/utils/cache/relcache.c
src/backend/utils/mmgr/aset.c
src/backend/utils/mmgr/mcxt.c
src/include/executor/executor.h
src/include/nodes/execnodes.h
src/include/utils/memutils.h