From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Tatsuo Ishii <ishii(at)postgresql(dot)org>, "josh(at)agliodbs(dot)com" <josh(at)agliodbs(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: unite recovery.conf and postgresql.conf |
Date: | 2011-09-25 17:18:27 |
Message-ID: | 2434.1316971107@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Sep 24, 2011, at 1:04 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua Berkus | 2011-09-25 17:52:06 | Re: unite recovery.conf and postgresql.conf |
Previous Message | Tom Lane | 2011-09-25 16:58:07 | Re: unite recovery.conf and postgresql.conf |