Re: PostgreSQL Failback without rebuild
От | James Sewell |
---|---|
Тема | Re: PostgreSQL Failback without rebuild |
Дата | |
Msg-id | CANkGpBt4JqfmjmNFDcB+Qtm0RiUPkGFNuXsXRMQXG1fqQY9vnA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: PostgreSQL Failback without rebuild (Michael Paquier <michael.paquier@gmail.com>) |
Ответы |
Re: PostgreSQL Failback without rebuild
Re: PostgreSQL Failback without rebuild |
Список | pgsql-hackers |
I've just noticed that on PostgreSQL 9.3 I can do the following with a master node A and a slave node B (as long as I have set recovery_target_timeline = 'latest'):
- Stop Node A
- Promote Node B
- Attach Node A as slave
This is sufficient for my needs (I know it doesn't cover a crash), can anyone see any potential problems with this approach?
Cheers,
James Sewell,
PostgreSQL Team Lead / Solutions Architect
______________________________________

On Wed, Feb 5, 2014 at 6:03 PM, Michael Paquier <michael.paquier@gmail.com> wrote:
On Wed, Feb 5, 2014 at 3:14 PM, Amit Kapila <amit.kapila16@gmail.com> wrote:
> On Wed, Feb 5, 2014 at 10:30 AM, James Sewell <james.sewell@lisasoft.com>>> I've seen some proposals and a tool (pg_rewind), but all seem to have drawFor 9.3, pg_rewind is only safe with page checksums enabled. For 9.4,
>> backs.
>
> As far as I remember, one of the main drawbacks for pg_rewind was related to
> hint bits which can be avoided by wal_log_hints. pg_rewind is not part of
> core
> PostgreSQL code, however if you wish, you can try that tool to see if can it
> solve your purpose.
yes wal_log_hints or checksums is mandatory. The code contains as well
some safety checks as well to ensure that a node not using those
parameters cannot be rewinded.
Regards,
--
Michael
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
В списке pgsql-hackers по дате отправления: