Hello i have setup streaming replication using PostgreSQL 11 on Windows working OK. How can i manually use the replica ( it is hot_standby=on ) in case Master fails ? What are the steps i have to perform to the replica ?
-
Do you want to access the standby or do you want to fail over? Please be more specific.Laurenz Albe– Laurenz Albe2020年05月05日 14:01:51 +00:00Commented May 5, 2020 at 14:01
-
Thank You for your reply. I want to access standby ( Its critical for me to use the standby as master and have available database for read/write.Anisa Ibro– Anisa Ibro2020年05月06日 09:11:11 +00:00Commented May 6, 2020 at 9:11
-
Do you want to promote the standby? Your question is still unclear.Laurenz Albe– Laurenz Albe2020年05月06日 11:32:54 +00:00Commented May 6, 2020 at 11:32
-
Yes i want to promote the standyAnisa Ibro– Anisa Ibro2020年05月06日 11:51:31 +00:00Commented May 6, 2020 at 11:51
1 Answer 1
Like the documentation says, there are three ways to promote a standby server:
run
pg_ctl promote
on the command line.create a trigger file (if you have configured the standby server accordingly).
from v12 on, you can also execute
SELECT pg_promote();
Explore related questions
See similar questions with these tags.