Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit422495d

Browse files
committed
Modify prefix_selectivity() so that it will never estimate the selectivity
of the generated range condition var >= 'foo' AND var < 'fop' as being lessthan what eqsel() would estimate for var = 'foo'. This is intuitivelyreasonable and it gets rid of the need for some entirely ad-hoc coding weformerly used to reject bogus estimates. The basic problem here is thatif the prefix is more than a few characters long, the two boundary valuesare too close together to be distinguishable by comparison to the columnhistogram, resulting in a selectivity estimate of zero, which is oftennot very sane. Change motivated by an example from Peter Eisentraut.Arguably this is a bug fix, but I'll refrain from back-patching itfor the moment.
1 parent6f10eb2 commit422495d

File tree

1 file changed

+215
-150
lines changed

1 file changed

+215
-150
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp