Re: pgsql: Recursively fsync() the data directory after a crash.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Recursively fsync() the data directory after a crash.
Дата
Msg-id CA+TgmoZgU7phQDPP7jm6gQ3N5u67Vp7FLiJ56M6dv9TD_+W97w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Recursively fsync() the data directory after a crash.  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-committers
On Mon, May 4, 2015 at 11:37 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
> On 05/04/2015 02:23 PM, Robert Haas wrote:
>> Recursively fsync() the data directory after a crash.
>>
>> Otherwise, if there's another crash, some writes from after the first
>> crash might make it to disk while writes from before the crash fail
>> to make it to disk.  This could lead to data corruption.
>>
>> Back-patch to all supported versions.
>>
>
> This appears to have broken Windows builds. At least it's broken by using
> the two argument form of open instead of the three argument form, for which
> we have a #define in the win32 case, and pg_win32_is_junction is a typo -
> the first _ should not be there.

Sorry about that.  Working on it now.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Recursively fsync() the data directory after a crash.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix some problems with patch to fsync the data directory.