Re: Performance problems, bad estimates and plan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: allanvv(at)gmail(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance problems, bad estimates and plan
Date: 2005-06-08 17:02:35
Message-ID: 4362.1118250155@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Allan Wang <allanvv(at)gmail(dot)com> writes:
> It seems that Postgres is estimating that all rows in a 50k row table
> will be returned, but only one should match.

I think this is the same issue fixed here:

2005-04-03 21:43 tgl

* src/backend/optimizer/path/: costsize.c (REL7_4_STABLE),
costsize.c (REL8_0_STABLE), costsize.c: In cost_mergejoin, the
early-exit effect should not apply to the outer side of an outer
join. Per andrew(at)supernews(dot)

Are you running 7.4.8 or 8.0.2 or later?

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2005-06-08 17:39:16 Re: Performance problems, bad estimates and plan
Previous Message Bjoern Metzdorf 2005-06-08 16:53:57 Re: Postgresql on an AMD64 machine