[HACKERS] EXPLAIN (ANALYZE, BUFFERS) reports bogus temporary buffer reads

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема [HACKERS] EXPLAIN (ANALYZE, BUFFERS) reports bogus temporary buffer reads
Дата
Msg-id CAEepm=21xgihg=WaG+O5MFotEZfN6kFETpfw+RkSnEqNQqGn2Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] EXPLAIN (ANALYZE, BUFFERS) reports bogus temporarybuffer reads  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi hackers,

Vik Fearing asked off-list why hash joins appear to read slightly more
temporary data than they write.  The reason is that we notch up a
phantom block read when we hit the end of each file.  Harmless but it
looks a bit weird and it's easily fixed.

Unpatched, a 16 batch hash join reports that we read 30 more blocks
than we wrote (2 per batch after the first, as expected):

   Buffers: shared hit=434 read=16234, temp read=5532 written=5502

With the attached patch:

   Buffers: shared hit=547 read=16121, temp read=5502 written=5502

-- 
Thomas Munro
http://www.enterprisedb.com

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

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] coverage analysis improvements
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] Is it time to kill support for very old servers?