Re: Lots of read activity on index only scan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Lots of read activity on index only scan
Дата
Msg-id 2267925.1668805186@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Lots of read activity on index only scan  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Ответы Re: Lots of read activity on index only scan  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Список pgsql-general
"Peter J. Holzer" <hjp-pgsql@hjp.at> writes:
> Both do a parallel index only scan. Both perform 0 heap fetches.
> But one reads 27336 buffers (or about 22 bytes per index entry, which
> sounds reasonable) while the other reads 9995216 buffers (or almost one
> full buffer per row). Why? The entries should be dense in the index in
> both cases and since it's an index only scan (and explain says there
> were 0 heap fetches) I would not expect extra accesses. Where do these
> buffer reads come from?

An "index only" scan is only that if the table's all-visible map is
fully set.  Did you vacuum this table after building it, or wait
long enough for autovacuum to do so?

            regards, tom lane



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

Предыдущее
От: Murillo corvino rocha
Дата:
Сообщение: RES: RES: session_user different from current_user after normal login
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: RES: RES: session_user different from current_user after normal login