Re: BUG #2225: Backend crash -- BIG table

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Patrick Rotsaert <patrick(dot)rotsaert(at)arrowup(dot)be>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2225: Backend crash -- BIG table
Date: 2006-02-03 17:34:49
Message-ID: 20060203093241.U59873@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Fri, 3 Feb 2006, Patrick Rotsaert wrote:

>
> >One question is what does the explain (without analyze) plan look like for
> >the above and are the row estimates valid in the case of one of the hash
> >plans.
> >
> >
> pointspp=# explain select trid, count(*) from pptran group by trid
> having count(*) > 1;
> QUERY PLAN
> --------------------------------------------------------------------------
> HashAggregate (cost=1311899.28..1311902.78 rows=200 width=18)
> Filter: (count(*) > 1)
> -> Seq Scan on pptran (cost=0.00..1039731.02 rows=36289102 width=18)
> (3 rows)

Hmm, if you do an enable_hashagg=false and then run the query (without
explain) does it work then?

> >Failing that, how many rows should the above return?
> >
> >
> That is exactly what I am trying to find out. I can only guess that, but
> it should not be more than a couple of 10k rows.

Okay, so it's unlikely to be a client side memory issue (if it were
returning alot of rows, that could also be an issue).

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-02-03 17:42:56 Re: BUG #2225: Backend crash -- BIG table
Previous Message Patrick Rotsaert 2006-02-03 17:18:44 Re: BUG #2225: Backend crash -- BIG table