Re: BUG #10144: PostgreSQL cost_index in costsize.c bug? (cann't estimate indexCorrelation correct)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: digoal(at)126(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #10144: PostgreSQL cost_index in costsize.c bug? (cann't estimate indexCorrelation correct)
Date: 2014-04-26 19:45:33
Message-ID: 13668.1398541533@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

digoal(at)126(dot)com writes:
> i see postgresql optimizer don't add column's indexCorrelation in index scan
> and then shold not choose optimal scannode.

When I try this test case, I find that the planner prefers a plain
seqscan, then a bitmap scan, and last an indexscan; and the cost estimates
are not too out of line with reality. I suspect you've changed the
planner's cost parameters to some non-default settings that don't really
square very well with your environment.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message sdfasdf asdfasdf 2014-04-26 20:01:34 Re[2]: [BUGS] Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP
Previous Message Tom Lane 2014-04-26 19:32:59 Re: Re[2]: [BUGS] BUG #10140: Configured for 127.0.0.1 but binds to all IP