Re: anti-join chosen even when slower than old plan - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: anti-join chosen even when slower than old plan
Date
Msg-id 4CDA3DF302000025000374F7@gw.wicourts.gov
Whole thread Raw
In response to anti-join chosen even when slower than old plan  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
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


pgsql-performance by date:

Previous
From: "静安寺"
Date:
Subject: Why dose the planner select one bad scan plan.
Next
From: tv@fuzzy.cz
Date:
Subject: Re: Why dose the planner select one bad scan plan.