Search Postgresql Archives

how the planner decides between bitmap/index scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

does the planner know how "scattered" rows are? If yes: where is this info stored?

I'm asking because it looks to me that not only the number of rows, but also how data is on disk (more or less sequential) is used to determine what type of index scan (bitmap/regular) has to be used...

but in the docs:
http://www.postgresql.org/docs/8.4/static/using-explain.html 
I've found only "there are so few that the extra cost of sorting the row locations is not worth it", which would mean that only the number of rows is actually used to choose between the two index access methods.

Can someone explain?

Thank you






-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux