From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: gryzman@gmail.com
To: tgl@sss.pgh.pa.us
Cc: pgsql-performance@postgresql.org
Subject: Re: anti-join chosen even when slower than old plan
Date: Wed, 10 Nov 2010 06:38:43 -0600
Message-ID: <4CDA3DF302000025000374F7@gw.wicourts.gov> (raw)
Grzegorz JaĆkiewicz wrote:
> you're joining on more than one key. That always hurts performance.
That's very clearly *not* the problem, as there is a plan which runs
in acceptable time but the optimizer is not choosing without being
coerced.
(1) Virtually every query we run joins on multi-column keys, yet we
have good performance except for this one query.
(2) We're talking about a performance regression due to a new release
picking a newly available plan which it wrongly estimates to be an
order of magnitude faster, when it's actually more than five times
slower.
-Kevin
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: Kevin.Grittner@wicourts.gov, gryzman@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: anti-join chosen even when slower than old plan
In-Reply-To: <4CDA3DF302000025000374F7@gw.wicourts.gov>
References: <4CDA3DF302000025000374F7@gw.wicourts.gov>
* 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