pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: Markus Schaber <schabi@logix-tt.com>
Cc: PostgreSQL Performance List <pgsql-performance@postgresql.org>
Subject: Re: PostgreSQL underestimates sorting
Date: Wed, 22 Nov 2006 14:54:34 +0100
Message-ID: <20061122135434.GA9669@uio.no> (raw)
In-Reply-To: <456423B3.7010505@logix-tt.com>
References: <456423B3.7010505@logix-tt.com>

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/



view thread (6+ messages)  latest in thread

Message-ID: <20061122135434.GA9669@uio.no>
Permalink:  ../20061122135434.GA9669@uio.no/
Also on:    postgresql.org/message-id/20061122135434.GA9669@uio.no

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sgunderson@bigfoot.com, schabi@logix-tt.com
  Subject: Re: PostgreSQL underestimates sorting
  In-Reply-To: <20061122135434.GA9669@uio.no>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox