Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster
- To: <pgsql-performance@xxxxxxxxxxxxxx>, "Kim Hansen" <kim@xxxxxxxxxxx>
- Subject: Re: Planner selects slow "Bitmap Heap Scan" when "Index Scan" is faster
- From: "Kevin Grittner" <Kevin.Grittner@xxxxxxxxxxxx>
- Date: Thu, 05 Apr 2012 10:34:36 -0500
- In-reply-to: <CAEGYRW7ecG6muQagLd=v_tCzpa148gdrKNbP6wNp_ER-6NZMAg@mail.gmail.com>
- References: <CAEGYRW7ecG6muQagLd=v_tCzpa148gdrKNbP6wNp_ER-6NZMAg@mail.gmail.com>
Kim Hansen <kim@xxxxxxxxxxx> 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
--
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
[Postgresql General]
[Postgresql PHP]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Home]
[Yosemite]