Multi - table statistics

Поиск
Список
Период
Сортировка
От Scara Maccai
Тема Multi - table statistics
Дата
Msg-id 391885.88270.qm@web24608.mail.ird.yahoo.com
обсуждение исходный текст
Ответы Re: Multi - table statistics
Список pgsql-general
Hi,

I query is using Index scan instead of Bitmap Index Scan because it "thinks" that the number of rows returned will be
low(12). In fact, the number of rows returned is 120. 

This happens because there are some WHERE conditions that check cross-tables values (something like taba.col1 <
tabb.col2). Since Postgresql doesn't know (I guess) anything about cross-table values statistics, how are the "rows"
valuescalculated? 

Is there any way I can force the planner to use bitmap index scan?





В списке pgsql-general по дате отправления:

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: High consumns memory
Следующее
От: Gerd König
Дата:
Сообщение: cache reads vs. disk reads