Re: pg_xlog on separate drive - Mailing list pgsql-sql

From Tom Lane
Subject Re: pg_xlog on separate drive
Date
Msg-id 14248.1164905109@sss.pgh.pa.us
Whole thread Raw
In response to pg_xlog on separate drive  ("Travis Whitton" <tinymountain@gmail.com>)
List pgsql-sql
"Travis Whitton" <tinymountain@gmail.com> writes:
> Hey guys, sorry if this is slightly OT for this list, but I figure it's a
> simple question. If I'm storing pg_xlog on a second non-redundant drive
> using the symlink method and the journal drive were to crash, how difficult
> is recovery? Will Postgresql simply be able to reinitialize the journal on a
> new drive and carry on, or is there more to it than that? I realize any
> pending transactions would be lost, but that's not a huge concern for me
> because everything I'm importing comes from raw data.

Losing xlog is pretty bad: there's a serious risk of data corruption, in
that transactions made since your last checkpoint may be only partially
applied.  I wouldn't recommend a setup in which xlog is less redundant
than your main storage array.
        regards, tom lane


pgsql-sql by date:

Previous
From: Jeff Herrin
Date:
Subject: Re: consistent random order
Next
From: "Matthew T. O'Connor"
Date:
Subject: Re: Autovaccum