Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I already setup Primary(master) and Secondery(standby) Servers. Now, I need to do switchover. that means standby should be master and master should be standby.

how to perform switchover in Postgres 9?

share|improve this question

migrated from Jun 21 '11 at 9:43

This question came from our site for professional and enthusiast programmers.

check your recovery.conf file. you should show a trigger file.

standby_mode = 'on'
primary_conninfo = 'host= port=5850 user=postgres'
trigger_file = '/home/pgdba/data2/finish.replication'

Create the trigger file (it can be empty) to trigger the switchover.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.