Re: Slow Query- Bad Row Estimate

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ozer, Pam" <pozer(at)automotive(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow Query- Bad Row Estimate
Date: 2010-10-29 21:50:07
Message-ID: 9823.1288389007@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Ozer, Pam" <pozer(at)automotive(dot)com> writes:
> I am not sure what you mean by reformulate the data representation. Do
> you mean do I have to join on all three columns?

No, I was wondering if you could change things so that you join on just
one column, instead of two that each tell part of the truth.

BTW, did you check your current statistics target? If it's small
then raising it might possibly fix the problem by itself.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2010-10-29 21:53:52 Re: [PERFORM] typoed column name, but postgres didn't grump
Previous Message Robert Haas 2010-10-29 21:48:59 Re: [PERFORM] typoed column name, but postgres didn't grump