Re: how to fail over slave to master - Mailing list pgsql-admin

From Amine Tengilimoglu
Subject Re: how to fail over slave to master
Date
Msg-id CADTdw-yhihjbQ7VEvKtqdBEUV9XEbd6fq+JfHtesF3f+Pk7Fzw@mail.gmail.com
Whole thread Raw
In response to how to fail over slave to master  (Pepe TD Vo <pepevo@yahoo.com>)
Responses Re: how to fail over slave to master  (Pepe TD Vo <pepevo@yahoo.com>)
List pgsql-admin
You need to promote standby server, you can do that pg_ctl promote command. And also you need to use pg_rewind command for setup the old master as a standby server. So you can start with investigate pg_ctl promote and pg_rewind...

28 Ara 2020 Pzt 21:29 tarihinde Pepe TD Vo <pepevo@yahoo.com> şunu yazdı:
Hello,

I have a problem with my master's Postgresql service.  I can't start up Postgresql, something corrupted and the Postgresql service is down.  The slave is still up and running, I wonder how to turn slave to primary and fixing the master server.  Once the master server is fixed, how can I fail it back?

Please advise.


Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.EmojiEmojiEmoji
To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)

**Live simply **Love generously **Care deeply **Speak kindly.
*** Genuinely rich *** Faithful talent *** Sharing success


pgsql-admin by date:

Previous
From: Pepe TD Vo
Date:
Subject: how to fail over slave to master
Next
From: Pepe TD Vo
Date:
Subject: Re: how to fail over slave to master