Re: Using old master as new replica after clean switchover - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Using old master as new replica after clean switchover
Date
Msg-id 20190222043528.GC24416@paquier.xyz
Whole thread Raw
In response to Re: Using old master as new replica after clean switchover  (RSR999GMAILCOM <rsr999@gmail.com>)
List pgsql-hackers
On Thu, Feb 21, 2019 at 10:26:37AM -0800, RSR999GMAILCOM wrote:
> Is there any link where  the required setup and the step by step procedure
> for performing the controlled switchover are listed?

Docs about failover are here:
https://www.postgresql.org/docs/current/warm-standby-failover.html

Now I don't recall that we have a section about a step-by-step
procedure for one case of failover or another.  The docs could be
perhaps improved regarding that, particularly for the case mentioned
here where it is possible to relink a previous master to a promoted
standby without risks of corruption:
- Stop cleanly the primary with smart or fast mode.
- Promote the standby.
- Add recovery.conf to the previous primary.
- Restart the previous primary as a new standby.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Using old master as new replica after clean switchover
Next
From: Michael Paquier
Date:
Subject: Re: reloption to prevent VACUUM from truncating empty pages at theend of relation