Re: Is pg_control file crashsafe?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is pg_control file crashsafe?
Дата
Msg-id 17675.1462231062@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is pg_control file crashsafe?  (Alex Ignatov <a.ignatov@postgrespro.ru>)
Ответы Re: Is pg_control file crashsafe?  (Alex Ignatov <a.ignatov@postgrespro.ru>)
Список pgsql-hackers
Alex Ignatov <a.ignatov@postgrespro.ru> writes:
> I think that rename can help a little bit. At least on some FS it is 
> atomic operation.

Writing a single sector ought to be atomic too.  I'm very skeptical that
it'll be an improvement to just move the risk from one filesystem
operation to another; especially not to one where there's not even a
terribly portable way to request fsync.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Is pg_control file crashsafe?