Understanding fsync (was: Need Help Recovering from Botched Upgrade Attempt)

Поиск
Список
Период
Сортировка
Искать
От
Sam Mason
Тема
Understanding fsync (was: Need Help Recovering from Botched Upgrade Attempt)
Дата
Msg-id
20080618154336.GG2572@frubble.xen.chris-lamb.co.uk
Ответ на
Список
Дерево обсуждения
Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Klint Gore <kgore4@une.edu.au>
Re: Need Help Recovering from Botched Upgrade Attempt Craig Ringer <craig@postnewspapers.com.au>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Craig Ringer <craig@postnewspapers.com.au>
Re: Need Help Recovering from Botched Upgrade Attempt Alan Hodgson <ahodgson@simkin.ca>
Re: Need Help Recovering from Botched Upgrade Attempt Craig Ringer <craig@postnewspapers.com.au>
Understanding fsync (was: Need Help Recovering from Botched Upgrade Attempt) Sam Mason <sam@samason.me.uk>
Re: Understanding fsync (was: Need Help Recovering from Botched Upgrade Attempt) Greg Smith <gsmith@gregsmith.com>
Re: Understanding fsync (was: Need Help Recovering from Botched Upgrade Attempt) Sam Mason <sam@samason.me.uk>
Re: Understanding fsync Craig Ringer <craig@postnewspapers.com.au>
Re: Understanding fsync Sam Mason <sam@samason.me.uk>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Sam Mason <sam@samason.me.uk>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Adrian Klaver <aklaver@comcast.net>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
Re: Need Help Recovering from Botched Upgrade Attempt Klint Gore <kgore4@une.edu.au>
Re: Need Help Recovering from Botched Upgrade Attempt Rich Shepard <rshepard@appl-ecosys.com>
On Wed, Jun 18, 2008 at 11:24:16PM +0800, Craig Ringer wrote:
> Alan Hodgson wrote:
> >You can't just backup a live database from the filesystem level and expect 
> >it to work ...
> 
> It should be OK, if less than ideal, if:
> 
> - You have fsync enabled (which you do if you care about your data);

I've always wondered about this!  Isn't fsync only a side-effect of
having a write-back cache between programs and the disk?  This means
it's only purpose is to ensure that the cache is consistent with what's
on disk.  Because all programs running within a system are running on
top of the cache they don't know or care whether the cache actually
matches up to the disk.

Therefore, if I understand things correctly, the state of fsync
shouldn't matter in this use case.  It's equally borken independent to
the state of fsync.


  Sam
В списке pgsql-general по дате отправления
От: Garry Saddington
Дата:
Сообщение: Re: UTF8 encoding problem
От: Rich Shepard
Дата:
FAQ