| От | Tom Lane |
|---|---|
| Тема | Re: Postgresql Performance on an HP DL385 and |
| Дата | |
| Msg-id | 28555.1155697254@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Postgresql Performance on an HP DL385 and ("Steinar H. Gunderson" <sgunderson@bigfoot.com>) |
| Список | pgsql-performance |
"Steinar H. Gunderson" <sgunderson@bigfoot.com> writes:
> On Tue, Aug 15, 2006 at 05:20:25PM -0500, Jim C. Nasby wrote:
>> This is only valid if the pre-allocation is also fsync'd *and* fsync
>> ensures that both the metadata and file data are on disk. Anyone
>> actually checked that? :)
> fsync() does that, yes. fdatasync() (if it exists), OTOH, doesn't sync the
> metadata.
Well, the POSIX spec says that fsync should do that ;-)
My guess is that most/all kernel filesystem layers do indeed try to sync
everything that the spec says they should. The Achilles' heel of the
whole business is disk drives that lie about write completion. The
kernel is just as vulnerable to that as any application ...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера