Re: Disaster!
| От | Manfred Spraul |
|---|---|
| Тема | Re: Disaster! |
| Дата | |
| Msg-id | 4013D381.20900@colorfullife.com обсуждение исходный текст |
| Ответ на | Re: Disaster! (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: Disaster!
|
| Список | pgsql-hackers |
Greg Stark wrote: >Manfred Spraul <manfred@colorfullife.com> writes: > > > >>That means >> open(); >> write(); >> sync(); >> >>could succeed, but the data is not stored on disk, correct? >> >> > >That would be true on any filesystem. Unless you throw an fsync() call in. > > The checkpoint code uses sync() right now. Actually sync();sleep(2);sync(). Win32 has no sync() call, therefore it will use fsyncs. Perhaps platforms with deferred errors on close must use fsync, too. Hopefully parallel fsyncs - sequential fsyncs could be slow due to more seeking. -- Manfred
В списке pgsql-hackers по дате отправления: