Re: PostgreSQL underestimates sorting - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: PostgreSQL underestimates sorting
Date
Msg-id 20061122135434.GA9669@uio.no
Whole thread Raw
In response to PostgreSQL underestimates sorting  (Markus Schaber <schabi@logix-tt.com>)
Responses Re: PostgreSQL underestimates sorting  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-performance
On Wed, Nov 22, 2006 at 11:17:23AM +0100, Markus Schaber wrote:
> The Backend allocates gigs of memory (we've set sort_mem to 1 gig), and
> then starts spilling out more Gigs of temporary data to the disk.

How much RAM is in the server? Remember that sort_mem is _per sort_, so if
you have multiple sorts, it might allocate several multiples of the amount
you set up.

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Markus Schaber
Date:
Subject: PostgreSQL underestimates sorting
Next
From: "Bucky Jordan"
Date:
Subject: Re: availability of SATA vendors