Change memory-space accounting mechanism in tuplesort.c and tuplestore.c

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 77a7e9968bf109d11b87c40ba41d4b1a7f1d28ea
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-08-12T00:36:12Z
Releases: 7.3.1
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..

Files