pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Stone <mstone+postgres@mathom.us>
To: Frank Schoep <frank@ffnn.nl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Bad planner decision - bitmap scan instead of index
Date: Fri, 17 Aug 2007 11:23:29 -0400
Message-ID: <20070817152326.GA3749@mathom.us> (raw)
In-Reply-To: <8797DC0C-8D0D-4F2D-A81B-4B65F8FC7382@ffnn.nl>
References: <D9BD2209-87AD-4DA9-ACC9-D013A56FE7FA@ffnn.nl>
	<20070817072839.GA6598@depesz.com>
	<8797DC0C-8D0D-4F2D-A81B-4B65F8FC7382@ffnn.nl>

On Fri, Aug 17, 2007 at 10:43:18AM +0200, Frank Schoep wrote:
>On Aug 17, 2007, at 9:28 AM, hubert depesz lubaczewski wrote:
>(cost=0.00..37612.76 rows=14221 width=48) (actual time=0.125..13.686  
>rows=2000 loops=1)
[snip]
>I'm not an expert at how the planner decides which query plan to use,  

Neither am I. :) I do notice that the estimated number of rows is 
significantly larger than the real number; you may want to bump up your 
statistics a bit to see if it can estimate better.

Mike Stone



view thread (7+ messages)  latest in thread

Message-ID: <20070817152326.GA3749@mathom.us>
Permalink:  ../20070817152326.GA3749@mathom.us/
Also on:    postgresql.org/message-id/20070817152326.GA3749@mathom.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mstone+postgres@mathom.us, frank@ffnn.nl
  Subject: Re: Bad planner decision - bitmap scan instead of index
  In-Reply-To: <20070817152326.GA3749@mathom.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