From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ozer, Pam <pozer@automotive.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow Query- Bad Row Estimate
Date: Fri, 29 Oct 2010 17:50:07 -0400
Message-ID: <9823.1288389007@sss.pgh.pa.us> (raw)
In-Reply-To: <216FFB77CBFAEE4B8EE4DF0A939FF1D1018358@mail-001.corp.automotive.com>
References: <216FFB77CBFAEE4B8EE4DF0A939FF1D1018354@mail-001.corp.automotive.com>
<9343.1288387050@sss.pgh.pa.us>
<216FFB77CBFAEE4B8EE4DF0A939FF1D1018358@mail-001.corp.automotive.com>
"Ozer, Pam" <pozer@automotive.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
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, pozer@automotive.com
Subject: Re: Slow Query- Bad Row Estimate
In-Reply-To: <9823.1288389007@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