Re: [PATCH] Recreate Missing WAL Directories (from TODO) - Mailing list pgsql-hackers

From Jonah H. Harris
Subject Re: [PATCH] Recreate Missing WAL Directories (from TODO)
Date
Msg-id 36e682920811081412x7577cc4hc1c8c5621aa6f8dc@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Recreate Missing WAL Directories (from TODO)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCH] Recreate Missing WAL Directories (from TODO)
List pgsql-hackers
On Sat, Nov 8, 2008 at 4:08 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> This has been suggested before but I'm unconvinced that it's a good
> idea.  It's reasonably common for pg_xlog to be a symlink.  If you
> neglect to re-establish the symlink then what would happen is that xlog
> gets recreated on the data disk, and with no notice you are running in
> a degraded mode.

Agreed on the basis that people sometimes forget to symlink.  That's
the reason why I was echoing a message.  Initially the message was
WARNING, but I degraded it to LOG.

> It might be reasonable to auto-recreate XLOGDIR/archive_status, though.

Attached.

BTW, I have seen people create both pg_xlog and archive_status as
files, which is why I'm validating that in this function rather than
waiting for it to error-out later in the code.

--
Jonah H. Harris, Senior DBA
myYearbook.com

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Recreate Missing WAL Directories (from TODO)
Next
From: Zdenek Kotala
Date:
Subject: WIP: Page space reservation (pgupgrade)