Re: Abysmal hash join

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Florian Weimer <fweimer(at)bfk(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Abysmal hash join
Date: 2006-09-11 14:28:51
Message-ID: 22641.1157984931@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Florian Weimer <fweimer(at)bfk(dot)de> writes:
> -> Bitmap Index Scan on large_rel_1_field_1 (cost=0.00..2003.09 rows=193739 width=0) (actual time=0.148..0.148 rows=12 loops=1)
> Index Cond: (n.field_1 = "outer".field_2)

What you need to look into is why that rowcount estimate is off by four
orders of magnitude.

The estimate on the smaller table is only off by a factor of 75 but
that's still pretty darn awful. Are the statistics up to date? Maybe
larger stats targets would help.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Florian Weimer 2006-09-11 15:15:33 Re: Abysmal hash join
Previous Message Tom Lane 2006-09-11 14:21:43 Re: Performance problem with joins