Re: Bitmap scan seem like such a strange choice when "limit 1"

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Bitmap scan seem like such a strange choice when "limit 1"
Дата
Msg-id CAHOFxGqidWg1hQF9a2hGZk1NJTbMAV2bNYqha+HPye8rA+dTMA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bitmap scan seem like such a strange choice when "limit 1"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Index Scan using bigtable_y2020_cars_ref_idx on bigtable_y2020 bigtable (cost=0.57..2966738.51 rows=2873818 width=636) (actual time=0.026..0.026 rows=1 loops=1)

Given the system expects to get almost 3 million rows when it should be just 1, it seems like a stats problem to me. How is ndistinct on that column compared to reality?

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

Предыдущее
От: Ben Chobot
Дата:
Сообщение: Re: 12.3 replicas falling over during WAL redo
Следующее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: ODBC Driver dsplay name