public inbox for [email protected]
help / color / mirror / Atom feedFrom: Michael Banck <[email protected]>
To: Narendran .j <[email protected]>
Cc: [email protected]
Subject: Re: Failover and Failback
Date: Thu, 19 Sep 2024 13:32:54 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+-Cqf6b2FY3nJuOL==XsUyVqSev47gXR57u8t5z2LfNZSLAaA@mail.gmail.com>
References: <CA+-Cqf6b2FY3nJuOL==XsUyVqSev47gXR57u8t5z2LfNZSLAaA@mail.gmail.com>
Hi,
On Thu, Sep 19, 2024 at 04:46:28PM +0530, Narendran .j wrote:
> I have facing a problem in failback. I just promoted my secondary as master
> by using pg_ctl promote.it was successful.so now how can I bring my old
> master as primary I tried with pg_rewind it's not working.
You need to bring your old primary as standby first, then switchover
back to it - otherwise, you would have two primaries, no?
In general, pg_rewind is the only reasonable way to recover a failed
over primary other than by rebuilding it from scratch as a standby.
So if pg_rewind did not work, we would need more information, like what
command did you issue exactly and what was the output/error message?
Michael
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Failover and Failback
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox