Allow sorts to use more available memory - Mailing list pgsql-performance

From Robert Schnabel
Subject Allow sorts to use more available memory
Date
Msg-id 4E6E426D.7060405@missouri.edu
Whole thread Raw
Responses Re: Allow sorts to use more available memory  (Andy Colson <andy@squeakycode.net>)
Re: Allow sorts to use more available memory  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-performance
The recent "data warehouse" thread made me think about how I use
work_mem for some of my big queries.  So I tried SET work_mem = '4GB'
for a session and got

ERROR: 4194304 is outside the valid range for parameter "work_mem" (64
.. 2097151)

A bit of searching turned up the "Allow sorts to use more available
memory" section of the to-do list.  Am I correct in reading that the
max_val is 2GB and regardless of how much RAM I have in the box I'm
stuck with only using 2GB?  Am I missing something?

I'm using: PostgreSQL 9.0.4, compiled by Visual C++ build 1500, 64-bit
Windows 2008 Server Enterprise

Thanks,
Bob


pgsql-performance by date:

Previous
From: Andy Colson
Date:
Subject: Re: Postgres for a "data warehouse", 5-10 TB
Next
From: Andy Colson
Date:
Subject: Re: Allow sorts to use more available memory