From: Merlin Moncure <mmoncure@gmail.com>
To: Dirk Lutzebaeck <lutzeb@aeccom.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: query produces 1 GB temp file
Date: Fri, 27 Oct 2006 09:49:34 -0400
Message-ID: <b42b73150610270649q4ee58b8as6aa03433b562e5e5@mail.gmail.com> (raw)
In-Reply-To: <20061027111142.DE9163ECE@cayambe.core.aeccom.com>
References: <20061027111142.DE9163ECE@cayambe.core.aeccom.com>
On 2/5/05, Dirk Lutzebaeck <lutzeb@aeccom.com> wrote:
> here is a query which produces over 1G temp file in pgsql_tmp. This
> is on pgsql 7.4.2, RHEL 3.0, XEON MP machine with 32GB RAM, 300MB
> sort_mem and 320MB shared_mem.
>
> Below is the query and results for EXPLAIN and EXPLAIN ANALYZE. All
> tables have been analyzed before.
>
> Can some please explain why the temp file is so huge? I understand
> there are a lot of rows. All relevant indices seem to be used.
how much memory have you set aside for sorting? also, this query will
likely run better in a more recent version of postgresql if thats
possible.
merlin
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: mmoncure@gmail.com, lutzeb@aeccom.com
Subject: Re: query produces 1 GB temp file
In-Reply-To: <b42b73150610270649q4ee58b8as6aa03433b562e5e5@mail.gmail.com>
* 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