From: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [COMMITTERS] pgsql: Fast promote mode skips checkpoint at end of recovery. |
Date: | 2013-02-06 18:47:39 |
Message-ID: | 5112A54B.8090500@vmware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 06.02.2013 20:02, Robert Haas wrote:
> On Wed, Feb 6, 2013 at 12:43 PM, Simon Riggs<simon(at)2ndquadrant(dot)com> wrote:
>>> 2. I don't like demoting the trigger file method to a second class
>>> citizen. I think we should make all functionality available through both
>>> methods. If there was a good reason for deprecating the trigger file
>>> method, I could live with that, but this patch is not such a reason.
>>
>> I don't understand why we introduced a second method if they both will
>> continue to be used. I see no reason for that, other than backwards
>> compatibility. Enhancing both mechanisms suggests both will be
>> supported into the future. Please explain why the second mode exists?
>
> I agree that we should be pushing people towards pg_ctl promote. I
> have no strong opinion about whether backward-compatibility for the
> trigger file method is a good idea or not. It might be a little soon
> to relegate that to second-class status, but I'm not sure.
Both the trigger file and pg_ctl promote methods are useful in different
setups. If you point the trigger file on an NFS mount or similar, that
allows triggering promotion from a different host without providing
shell access. You might want to put the trigger file on an NFS mount
that also contains the WAL archive, for example. A promotion script that
also controls the network routers to redirect traffic and STONITH the
dead node, can then simply "touch /mnt/.../trigger" to promote. Sure, it
could also ssh to the server and run "pg_ctl promote", but that requires
more setup.
- Heikki
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2013-02-06 19:53:00 | pgsql: Enable building with Microsoft Visual Studio 2012. |
Previous Message | Robert Haas | 2013-02-06 18:02:17 | Re: [COMMITTERS] pgsql: Fast promote mode skips checkpoint at end of recovery. |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2013-02-06 18:51:15 | Re: palloc unification |
Previous Message | Simon Riggs | 2013-02-06 18:06:36 | Re: proposal: ANSI SQL 2011 syntax for named parameters |