From: Tom Lane <tgl@sss.pgh.pa.us>
To: bricklen <bricklen@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Huge overestimation in rows expected results in bad plan
Date: Tue, 09 Nov 2010 18:29:40 -0500
Message-ID: <20388.1289345380@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTim=JS-tu5G1CvrPnvfSTj7=YSxu=kwNUP+hLVfG@mail.gmail.com>
References: <AANLkTim=JS-tu5G1CvrPnvfSTj7=YSxu=kwNUP+hLVfG@mail.gmail.com>
bricklen <bricklen@gmail.com> writes:
> I have a query that is getting a pretty bad plan due to a massively
> incorrect count of expected rows.
The query doesn't seem to match the plan. Where is that OR (c.id =
38441828354::bigint) condition coming from?
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, bricklen@gmail.com
Subject: Re: Huge overestimation in rows expected results in bad plan
In-Reply-To: <20388.1289345380@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