aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/globals.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-08-12 00:36:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-08-12 00:36:12 +0000
commit77a7e9968bf109d11b87c40ba41d4b1a7f1d28ea (patch)
treee33aa3030956bcc878a3181e9cd31efad38b0d6c /src/backend/utils/init/globals.c
parente44beef712144316cb83d32ccf3231a1503c9655 (diff)
downloadpostgresql-77a7e9968bf109d11b87c40ba41d4b1a7f1d28ea.tar.gz
postgresql-77a7e9968bf109d11b87c40ba41d4b1a7f1d28ea.zip
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..
Diffstat (limited to 'src/backend/utils/init/globals.c')
-rw-r--r--src/backend/utils/init/globals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c
index cec975719e1..51a729c49c6 100644
--- a/src/backend/utils/init/globals.c
+++ b/src/backend/utils/init/globals.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.65 2002/06/20 20:29:40 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.66 2002/08/12 00:36:11 tgl Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
@@ -71,6 +71,6 @@ char FloatFormat[20] = "%f";
bool enableFsync = true;
bool allowSystemTableMods = false;
-int SortMem = 512;
+int SortMem = 1024;
int VacuumMem = 8192;
int NBuffers = DEF_NBUFFERS;