| От | Tom Lane |
|---|---|
| Тема | Re: Choosing between seqscan and bitmap scan |
| Дата | |
| Msg-id | 10295.1272548301@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Choosing between seqscan and bitmap scan (Teodor Sigaev <teodor@sigaev.ru>) |
| Ответы |
Re: Choosing between seqscan and bitmap scan
|
| Список | pgsql-hackers |
Teodor Sigaev <teodor@sigaev.ru> writes:
> [ planner prefers ]
> -> Seq Scan on foo (cost=0.00..5805.00 rows=4907 width=0)
> to
> -> Bitmap Heap Scan on foo (cost=942.46..5755.08 rows=4907 width=0)
> Why does pgsql choose seqscan (5817.28) instead of bitmap one (5767.36)?
There's a fuzz factor of (IIRC) 1% in path cost comparisons. It's
deciding that the seqscan and bitmapscan total costs are not
meaningfully different; then since the startup costs *are* meaningfully
different, it's making the choice on the basis of cheaper startup cost.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера