Re: Experimental patch for inter-page delay in VACUUM

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Experimental patch for inter-page delay in VACUUM
Дата
Msg-id 877k2f4aem.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Experimental patch for inter-page delay in VACUUM  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Manfred Spraul <manfred@colorfullife.com> writes:

> Greg Stark wrote:
> 
> >>>I'm assuming fsync syncs writes issued by other processes on the same file,
> >>>which isn't necessarily true though.
> >>>
> >>It was already pointed out that we can't rely on that assumption.
> >>
> >
> >So the NetBSD and Sun developers I checked with both asserted fsync does in
> >fact guarantee this. And SUSv2 seems to back them up:
> >

> At least Linux had one problem: fsync() syncs the inode to disk, but not the
> directory entry: if you rename a file, open it, write to it, fsync, and the
> computer crashes, then it's not guaranteed that the file rename is on the disk.
> I think only the old ext2 is affected, not the journaling filesystems.

That's true. But why would postgres ever have to worry about files being
renamed being synced? Tables and indexes don't get their files renamed
typically. WAL logs?

-- 
greg



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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Very poor estimates from planner
Следующее
От: elein
Дата:
Сообщение: Re: [pgsql-www] Changes to Contributor List