pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: allanvv@gmail.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance problems, bad estimates and plan
Date: Wed, 08 Jun 2005 13:02:35 -0400
Message-ID: <4362.1118250155@sss.pgh.pa.us> (raw)
In-Reply-To: <1118243044.3454.3.camel@localhost>
References: <1118243044.3454.3.camel@localhost>

Allan Wang <allanvv@gmail.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@supernews.

Are you running 7.4.8 or 8.0.2 or later?

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <4362.1118250155@sss.pgh.pa.us>
Permalink:  ../4362.1118250155@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4362.1118250155@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, allanvv@gmail.com
  Subject: Re: Performance problems, bad estimates and plan
  In-Reply-To: <4362.1118250155@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