pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: kevin kempter <kevin@kevinkempterllc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Join runs for > 10 hours and then fills up >1.3TB of disk space
Date: Fri, 16 May 2008 08:40:16 +0100
Message-ID: <482D3A60.30006@archonet.com> (raw)
In-Reply-To: <CEFBA6FF-0E0A-41A0-959E-7DBBDA296825@kevinkempterllc.com>
References: <CEFBA6FF-0E0A-41A0-959E-7DBBDA296825@kevinkempterllc.com>

kevin kempter wrote:
> Hi List;
> 
> I have a table with 9,961,914 rows in it (see the describe of 
> bigtab_stats_fact_tmp14 below)
> 
> I also have a table with 7,785 rows in it (see the describe of 
> xsegment_dim below)
> 
> I'm running the join shown below and it takes > 10 hours and eventually 
> runs out of disk space on a 1.4TB file system

> QUERY PLAN
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> Merge Join  (cost=1757001.74..73569676.49 rows=3191677219 width=118)

Dumb question Kevin, but are you really expecting 3.2 billion rows in 
the result-set? Because that's approaching 400GB of result-set without 
any overheads.

-- 
   Richard Huxton
   Archonet Ltd



view thread (11+ messages)  latest in thread

Message-ID: <482D3A60.30006@archonet.com>
Permalink:  ../482D3A60.30006@archonet.com/
Also on:    postgresql.org/message-id/482D3A60.30006@archonet.com

 · 

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: dev@archonet.com, kevin@kevinkempterllc.com
  Subject: Re: Join runs for > 10 hours and then fills up >1.3TB of disk space
  In-Reply-To: <482D3A60.30006@archonet.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