Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster
Date
Msg-id 4F7D753C0200002500046BF5@gw.wicourts.gov
Whole thread Raw
In response to Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster  (Kim Hansen <kim@rthansen.dk>)
Responses Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster  (Kim Hansen <kim@rthansen.dk>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: about multiprocessingmassdata
Next
From: Gregg Jaskiewicz
Date:
Subject: heavly load system spec