Re: disaster recovery

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: disaster recovery
Дата
Msg-id 87ad6i8qzu.fsf@asmodeus.mcnaught.org
обсуждение исходный текст
Ответ на Re: disaster recovery  (Alex Satrapa <alex@lintelsys.com.au>)
Ответы Re: disaster recovery  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Alex Satrapa <alex@lintelsys.com.au> writes:

> 1) Under Linux, if you have the file system containing the WAL mounted
> with asynchronous writes, "all bets are off". The *BSD crowd (that I
> know of) take great pleasure in constantly reminding me that if the
> power fails, my file system will be in an indeterminate state - things
> could be half-written all over the file system.

This is pretty out of date.  If you use a journaling filesystem
(there are four solid ones available and modern distros use them)
metadata is consistent and crash recovery is fast.

Even with ext2, WAL files are preallocated and PG calls fsync() after
writing, so in practice it's not likely to cause problems.

-Doug

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

Предыдущее
От: "Jason Tesser"
Дата:
Сообщение: Re: pam authentication for postgres
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Happy Thanksgiving!