Re: logtape.c stats don't account for unused "prefetched" block numbers

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: logtape.c stats don't account for unused "prefetched" block numbers
Дата
Msg-id CAH2-Wzkyt-kOOsb2XnQk6w_cZOYW8XCykAysAVg6iJDXqZ4A5Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: logtape.c stats don't account for unused "prefetched" block numbers  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: logtape.c stats don't account for unused "prefetched" block numbers
Список pgsql-hackers
On Mon, Sep 14, 2020 at 3:24 PM Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> I don't understand this patch.  Or maybe I should say I don't understand
> the code you're patching.  Why isn't the correct answer *always*
> nBlocksWritten?  The comment in LogicalTapeSet says:

I think that they are an exact match in practice (i.e. nBlocksWritten
== nBlocksAllocated), given when and how we call
LogicalTapeSetBlocks().

-- 
Peter Geoghegan



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore causing deadlocks on partitioned tables
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: logtape.c stats don't account for unused "prefetched" block numbers