Re: query produces 1 GB temp file

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Dirk Lutzebaeck" <lutzeb(at)aeccom(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: query produces 1 GB temp file
Date: 2006-10-27 13:49:34
Message-ID: b42b73150610270649q4ee58b8as6aa03433b562e5e5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 2/5/05, Dirk Lutzebaeck <lutzeb(at)aeccom(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bricklen Anderson 2006-10-27 14:33:57 Re: query produces 1 GB temp file
Previous Message soni de 2006-10-27 13:12:35 Re: Regarding Bitmap Scan