From: Kris Jurka <books@ejurka.com>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: mis-estimation on data-warehouse aggregate creation
Date: Wed, 17 Nov 2004 03:19:39 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0411170315050.13112@leary.csoft.net> (raw)
In-Reply-To: <1100640596.4113.5680.camel@localhost.localdomain>
References: <Pine.BSO.4.56.0411160339500.31841@leary.csoft.net>
<1100640596.4113.5680.camel@localhost.localdomain>
On Tue, 16 Nov 2004, Simon Riggs wrote:
> The join condition has so many ANDed predicates that we assume that this
> will reduce the selectivity considerably. It does not, and so you pay
> the cost dearly later on.
>
Yes, that makes a lot of sense. Without some incredibly good cross-column
statistics there is no way it could expect all of the rows to match.
Thanks for the analysis.
Kris Jurka
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: books@ejurka.com, simon@2ndquadrant.com
Subject: Re: mis-estimation on data-warehouse aggregate creation
In-Reply-To: <Pine.BSO.4.56.0411170315050.13112@leary.csoft.net>
References: <Pine.BSO.4.56.0411160339500.31841@leary.csoft.net> <1100640596.4113.5680.camel@localhost.localdomain> <Pine.BSO.4.56.0411170315050.13112@leary.csoft.net>
* 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