Re: Does PostgreSQL use atomic file creation of FS?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Does PostgreSQL use atomic file creation of FS?
Дата
Msg-id c2f14b0954fc276e5583d0f7dc940925575c86a3.camel@cybertec.at
обсуждение исходный текст
Ответ на Does PostgreSQL use atomic file creation of FS?  (Dmitry Lazurkin <dilaz03@gmail.com>)
Список pgsql-general
Dmitry Lazurkin wrote:
> Does PostgreSQL use atomic file creation on FS? How does PostgreSQL
> catch situation when system crashes between open call and write call? I
> am interesting in this because I would like use PostgreSQL on network
> file system.

If there is a crash, the file would be left behind.
This is slightly annoying, but shouldn't be a major problem.
Persisting such information in a crash-safe way would require
fsyncs that hurt I/O performance.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



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

Предыдущее
От: "Abraham, Danny"
Дата:
Сообщение: psql output in Japanese Code Page
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Does PostgreSQL use atomic file creation of FS?