pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-performance@postgresql.org
To: Kim Hansen <kim@rthansen.dk>
Subject: Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster
Date: Thu, 05 Apr 2012 10:34:36 -0500
Message-ID: <4F7D753C0200002500046BF5@gw.wicourts.gov> (raw)
In-Reply-To: <CAEGYRW7ecG6muQagLd=v_tCzpa148gdrKNbP6wNp_ER-6NZMAg@mail.gmail.com>
References: <CAEGYRW7ecG6muQagLd=v_tCzpa148gdrKNbP6wNp_ER-6NZMAg@mail.gmail.com>

Kim Hansen <kim@rthansen.dk> wrote:
 
> I have a query where the planner makes a wrong cost estimate, it
> looks like it underestimates the cost of a "Bitmap Heap Scan"
> compared to an "Index Scan".
 
> What can I do to fix the cost estimate?
 
Could you try running the query with cpu_tuple_cost = 0.05 and let
us know how that goes?
 
-Kevin



view thread (7+ messages)  latest in thread

Message-ID: <4F7D753C0200002500046BF5@gw.wicourts.gov>
Permalink:  ../4F7D753C0200002500046BF5@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F7D753C0200002500046BF5@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, kim@rthansen.dk
  Subject: Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster
  In-Reply-To: <4F7D753C0200002500046BF5@gw.wicourts.gov>
  References: <CAEGYRW7ecG6muQagLd=v_tCzpa148gdrKNbP6wNp_ER-6NZMAg@mail.gmail.com> <4F7D753C0200002500046BF5@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