pgsql-server/src backend/commands/prepare.c ba ...
pgsql-server/src backend/commands/prepare.c ba ...
От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@postgresql.org 02/12/15 16:01:34 Modified files: src/backend/commands: prepare.c trigger.c src/backend/executor: execJunk.c execMain.c spi.c src/backend/utils/cache: relcache.c src/backend/utils/mmgr: aset.c mcxt.c src/include/executor: executor.h src/include/nodes: execnodes.h src/include/utils: memutils.h Log message: 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.