Re: race condition when writing pg_control

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: race condition when writing pg_control
Дата
Msg-id 2138498.1715886091@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: race condition when writing pg_control  (Andres Freund <andres@anarazel.de>)
Ответы Re: race condition when writing pg_control
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2024-05-16 14:50:50 -0400, Tom Lane wrote:
>> The intention was certainly always that it be atomic.  If it isn't
>> we have got *big* trouble.

> We unfortunately do *know* that on several systems e.g. basebackup can read a
> partially written control file, while the control file is being
> updated.

Yeah, but can't we just retry that if we get a bad checksum?

What had better be atomic is the write to disk.  Systems that can't
manage POSIX semantics for concurrent reads and writes are annoying,
but not fatal ...

            regards, tom lane



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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Introduce new multi insert Table AM and improve performance of various SQL commands with it for Heap AM
Следующее
От: Andres Freund
Дата:
Сообщение: Re: race condition when writing pg_control