I've built a Postgresql 12 HA system, one server is Master (s1) and the other is Slave (s2).
Assume the Master server (s1) failed due to power outage, and the Slave server (s2) got promoted to Master, what will happen when I turn on the Master server (s1) again? will it become Master and the Slave Server (s2) which currently Master be promoted again to Slave ? and will the Master Server (s1) resync what the Slave server (s2) handled while it was down ?