pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian Weimer <fweimer@bfk.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: Abysmal hash join
Date: Mon, 11 Sep 2006 10:28:51 -0400
Message-ID: <22641.1157984931@sss.pgh.pa.us> (raw)
In-Reply-To: <821wqiy0oc.fsf@mid.bfk.de>
References: <821wqiy0oc.fsf@mid.bfk.de>

Florian Weimer <fweimer@bfk.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



view thread (6+ messages)  latest in thread

Message-ID: <22641.1157984931@sss.pgh.pa.us>
Permalink:  ../22641.1157984931@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22641.1157984931@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, fweimer@bfk.de
  Subject: Re: Abysmal hash join
  In-Reply-To: <22641.1157984931@sss.pgh.pa.us>

* 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