Re: Odd, intermittent failure in contrib/pageinspect

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd, intermittent failure in contrib/pageinspect
Дата
Msg-id 560614.1611107842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Odd, intermittent failure in contrib/pageinspect  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> I think you don't event need checkpointer to be involved, normal buffer
> replacement would do the trick. We briefly pin the page in BufferAlloc()
> even if the page is clean. Longer when it's dirty, of course.

True, but it seems unlikely that the pages in question here would be
chosen as replacement victims.  These are non-parallel tests, so
there's little competitive pressure.  I could believe that a background
autovacuum is active, but not that it's dirtied so many pages that
tables the test script just created need to get swapped out.

The checkpointer theory seems good because it requires no assumptions
at all about competing demand for buffers.  If the clock sweep gets
to the table page (which we know is recently dirtied) at just the right
time, we'll see a failure.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH 1/1] Fix detection of pwritev support for OSX.
Следующее
От: Amit Langote
Дата:
Сообщение: Re: POC: postgres_fdw insert batching