Skip to content

Commit 1b1e335

Browse files
committed
Make the minimum allowed value of work_mem be 64KB always, rather than having
it vary with BLCKSZ as before. This agrees with what the documentation says, and avoids a regression test problem when BLCKSZ is larger than default. Per recent discussion.
1 parent 772f63d commit 1b1e335

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.175 2008/04/18 01:42:17 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.176 2008/05/01 19:55:40 tgl Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -826,7 +826,7 @@ SET ENABLE_SEQSCAN TO OFF;
826826
<listitem>
827827
<para>
828828
Specifies the amount of memory to be used by internal sort operations
829-
and hash tables before switching to temporary disk files. The value is
829+
and hash tables before switching to temporary disk files. The value
830830
defaults to one megabyte (<literal>1MB</>).
831831
Note that for a complex query, several sort or hash operations might be
832832
running in parallel; each one will be allowed to use as much memory

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.449 2008/04/29 20:44:49 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.450 2008/05/01 19:55:40 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1339,7 +1339,7 @@ static struct config_int ConfigureNamesInt[] =
13391339
GUC_UNIT_KB
13401340
},
13411341
&work_mem,
1342-
1024, 8 * BLCKSZ / 1024, MAX_KILOBYTES, NULL, NULL
1342+
1024, 64, MAX_KILOBYTES, NULL, NULL
13431343
},
13441344

13451345
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy