Re: disaster recovery

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Alex Satrapa <alex(at)lintelsys(dot)com(dot)au>
Cc: Jason Tesser <JTesser(at)nbbc(dot)edu>, "Pgsql (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: disaster recovery
Date: 2003-11-27 02:49:57
Message-ID: 87ad6i8qzu.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Satrapa <alex(at)lintelsys(dot)com(dot)au> writes:

> 1) Under Linux, if you have the file system containing the WAL mounted
> with asynchronous writes, "all bets are off". The *BSD crowd (that I
> know of) take great pleasure in constantly reminding me that if the
> power fails, my file system will be in an indeterminate state - things
> could be half-written all over the file system.

This is pretty out of date. If you use a journaling filesystem
(there are four solid ones available and modern distros use them)
metadata is consistent and crash recovery is fast.

Even with ext2, WAL files are preallocated and PG calls fsync() after
writing, so in practice it's not likely to cause problems.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2003-11-27 02:52:45 Happy Thanksgiving!
Previous Message Nicholas Walker 2003-11-27 02:21:38 Executing Shell Command