Re: [PATCH] Recreate Missing WAL Directories (from TODO)

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: [PATCH] Recreate Missing WAL Directories (from TODO)
Дата
Msg-id 36e682920811081412x7577cc4hc1c8c5621aa6f8dc@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Recreate Missing WAL Directories (from TODO)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] Recreate Missing WAL Directories (from TODO)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Recreate Missing WAL Directories (from TODO)
Следующее
От: Zdenek Kotala
Дата:
Сообщение: WIP: Page space reservation (pgupgrade)