We are using postgres 9.4.15 in our master and slave server. We want to test the failover scenario where we will be manually turn off host 1(master) and see if failover happens to host 2(slave server). I had few doubts
1) Slave server will assume the role of master but will it be only on read only mode ?
2) How to make master back to master state, after we turn on host 1. Any specific steps to make master back to master state?