pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: tgl@sss.pgh.pa.us
Cc: tgarnett@panjiva.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Re: Adding additional index causes 20,000x slowdown for certain select queries - postgres 9.0.3
Date: Wed, 16 Mar 2011 12:44:31 -0500
Message-ID: <4D80B0AF020000250003B9B4@gw.wicourts.gov> (raw)
References: <4D80B076020000250003B9B1@gw.wicourts.gov>
	<4D80B0AF020000250003B9B4@gw.wicourts.gov>

Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
 
>> We've seen a lot of those lately -- Index Scan Backward
>> performing far worse than alternatives.
> 
> It's not clear to me that that has anything to do with Tim's
> problem.  It certainly wouldn't be 20000x faster if it were a
> forward scan.
 
Well, that's one way of looking at it.  Another would be that the
slower plan with the backward scan was only estimated to be 14.5%
less expensive than the fast plan, so a pretty moderate modifier
would have avoided this particular problem.  The fact that the
backward scan mis-estimate may be combining multiplicatively with
other mis-estimates doesn't make it less important.
 
-Kevin




view thread (15+ messages)  latest in thread

Message-ID: <4D80B0AF020000250003B9B4@gw.wicourts.gov>
Permalink:  ../4D80B0AF020000250003B9B4@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4D80B0AF020000250003B9B4@gw.wicourts.gov

 · 

reply

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, tgl@sss.pgh.pa.us, tgarnett@panjiva.com
  Subject: Re: Adding additional index causes 20,000x slowdown for certain select queries - postgres 9.0.3
  In-Reply-To: <4D80B0AF020000250003B9B4@gw.wicourts.gov>
  References: <4D80B076020000250003B9B1@gw.wicourts.gov> <4D80B0AF020000250003B9B4@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