Re: no universally correct setting for fsync

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: no universally correct setting for fsync
Дата
в 11:49:11
Msg-id
4BE3E205020000250003138F@gw.wicourts.gov
Ответ на
Список
Дерево обсуждения
no universally correct setting for fsync "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: no universally correct setting for fsync Tom Lane <tgl@sss.pgh.pa.us>
Re: no universally correct setting for fsync Andrew Dunstan <andrew@dunslane.net>
Re: no universally correct setting for fsync "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: no universally correct setting for fsync Josh Berkus <josh@agliodbs.com>
Re: no universally correct setting for fsync Craig Ringer <craig@postnewspapers.com.au>
Re: no universally correct setting for fsync Michael Tharp <gxti@partiallystapled.com>
Re: no universally correct setting for fsync Bruce Momjian <bruce@momjian.us>
Re: no universally correct setting for fsync Robert Haas <robertmhaas@gmail.com>
Re: no universally correct setting for fsync Bruce Momjian <bruce@momjian.us>
Re: no universally correct setting for fsync "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: no universally correct setting for fsync Greg Stark <gsstark@mit.edu>
Re: no universally correct setting for fsync "Joshua D. Drake" <jd@commandprompt.com>
Re: no universally correct setting for fsync "Joshua D. Drake" <jd@commandprompt.com>
Re: no universally correct setting for fsync "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: no universally correct setting for fsync Tom Lane <tgl@sss.pgh.pa.us>
Re: no universally correct setting for fsync Yeb Havinga <yebhavinga@gmail.com>
Re: no universally correct setting for fsync Bernd Helmle <mailings@oopsware.de>
Re: no universally correct setting for fsync Tom Lane <tgl@sss.pgh.pa.us>
Re: no universally correct setting for fsync Bernd Helmle <mailings@oopsware.de>
Re: no universally correct setting for fsync Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: no universally correct setting for fsync "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: no universally correct setting for fsync Josh Berkus <josh@agliodbs.com>
Re: no universally correct setting for fsync Greg Smith <greg@2ndquadrant.com>
Re: no universally correct setting for fsync Josh Berkus <josh@agliodbs.com>
Re: no universally correct setting for fsync Greg Smith <greg@2ndquadrant.com>
Re: no universally correct setting for fsync Josh Berkus <josh@agliodbs.com>
Re: no universally correct setting for fsync "Ross J. Reedstrom" <reedstrm@rice.edu>
Re: no universally correct setting for fsync Josh Berkus <josh@agliodbs.com>
Re: no universally correct setting for fsync Bruce Momjian <bruce@momjian.us>
Re: no universally correct setting for fsync Robert Haas <robertmhaas@gmail.com>
Re: no universally correct setting for fsync Magnus Hagander <magnus@hagander.net>
Andrew Dunstan  wrote:
> I think the critical question is really whether you are prepared
> to lose your database.
Precisely; and the docs don't make that at all clear.  They mention
the possibility of database corruption, but downplay it:
| When fsync is disabled, the operating system is allowed to do its
| best in buffering, ordering, and delaying writes. This can result
| in significantly improved performance. However, if the system
| crashes, the results of the last few committed transactions might
| be lost in part or whole. In the worst case, unrecoverable data
| corruption might occur.

> [valid use case for fsync=off]
> 
> So I think its true that there is no universally right answer.
> Maybe the criteria mentioned in the last para need tweaking some,
> though.
I think it goes beyond "tweaking" -- I think we should have a bald
statement like "don't turn this off unless you're OK with losing the
entire contents of the database cluster."  A brief listing of some
cases where that is OK might be illustrative.
I never meant to suggest any statement in that section is factually
wrong; it's just all too rosy, leading people to believe it's no big
deal to turn it off.
-Kevin

В списке pgsql-hackers по дате отправления
От: Andy Lester
Дата:
От: Tom Lane
Дата:
FAQ