]> granicus.if.org Git - postgresql/commit
Change memory-space accounting mechanism in tuplesort.c and tuplestore.c
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Aug 2002 00:36:12 +0000 (00:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Aug 2002 00:36:12 +0000 (00:36 +0000)
commit77a7e9968bf109d11b87c40ba41d4b1a7f1d28ea
treee33aa3030956bcc878a3181e9cd31efad38b0d6c
parente44beef712144316cb83d32ccf3231a1503c9655
Change memory-space accounting mechanism in tuplesort.c and tuplestore.c
to make a reasonable attempt at accounting for palloc overhead, not just
the requested size of each memory chunk.  Since in many scenarios this
will make for a significant reduction in the amount of space acquired,
partially compensate by doubling the default value of SORT_MEM to 1Mb.
Per discussion in pgsql-general around 9-Jun-2002..
doc/src/sgml/runtime.sgml
src/backend/utils/init/globals.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/mmgr/aset.c
src/backend/utils/mmgr/mcxt.c
src/backend/utils/sort/tuplesort.c
src/backend/utils/sort/tuplestore.c
src/include/nodes/memnodes.h
src/include/utils/memutils.h