From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Dimitri Fontaine <dfontaine(at)hi-media(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Jaime Casanova <jaime(at)2ndquadrant(dot)com>, Thom Brown <thom(at)linux(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: recovery.conf location |
Date: | 2010-10-01 09:47:45 |
Message-ID: | AANLkTikcGv2J=xTs=9AFKNLVN1oj3bfG7mZeXse2j+Rm@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Oct 1, 2010 at 9:21 AM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 9/29/10 7:54 PM, Tom Lane wrote:
>> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>>> But that's not what Tom is talking about, I don't think: you might
>>> also want a way to explicitly whack the flag in pg_control around.
>>> That would probably be along the lines of pg_resetxlog. I'm not sure
>>> how much use case there is for such a thing, but if it's needed it's
>>> certainly wouldn't be hard to write.
>>
>> Right, but instead of having to provide such a tool, we could just
>> store the status as a text file. There is a pretty time-honored
>> tradition for that, ya know.
>
> And then move all the other config parameters to postgresql.conf?
The consensus seems to be to move only parameters for the standby server
(except standby_mode) to postgresql.conf. That is, primary_conninfo and
trigger_file.
> And
> have PG poll that text file periodically so that you could update it and
> it would fail over?
Hmm.. instead of that text file (i.e., recovery.conf), trigger file is
periodically polled by the standby server.
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Hitoshi Harada | 2010-10-01 09:52:15 | INSERT ... VALUES... with ORDER BY / LIMIT |
Previous Message | Fujii Masao | 2010-10-01 09:13:02 | Re: Using streaming replication as log archiving |