Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Jun 21 '11 at 9:43

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

1 Answer 1

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.