Re: unite recovery.conf and postgresql.conf

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: unite recovery.conf and postgresql.conf
Дата
Msg-id 2434.1316971107@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: unite recovery.conf and postgresql.conf  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: unite recovery.conf and postgresql.conf
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sep 24, 2011, at 1:04 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I don't exactly buy this argument.  If postgresql.conf is hard to
>> machine-edit, why is recovery.conf any easier?

> Because you generally just write a brand-new file, without worrying
> about preserving existing settings. You aren't really editing at all,
> just writing.

If that's all the requirement is, it's trivial to implement.

1. Write your-random-configuration-settings into recovery.conf (or any
other file name you choose ... something named after your tool would be
a better idea).

2. Temporarily append "include recovery.conf" to the end of
postgresql.conf.  Restart server.

3. When done, remove "include recovery.conf" from the end of
postgresql.conf.

The hard cases involve merging user-supplied and tool-supplied settings,
but "let's overwrite recovery.conf in toto" never would have been able
to handle such cases either.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: unite recovery.conf and postgresql.conf
Следующее
От: Joshua Berkus
Дата:
Сообщение: Re: unite recovery.conf and postgresql.conf