<div dir="ltr">Hi all,<br><div><br></div><div>I would like to know if there is a mechanism to ensure one node is always primary.</div><div>I have seen the ALWAYS_PRIMARY flag in the config file but I couldn't make it work.</div><div>I tried to put in the backend_flag the value "ALLOW_TO_FAILOVER|ALWAYS_PRIMARY" with no success.</div><div><br></div><div>I have two nodes with streaming replication (server1 and server2). Server1 is primary but sometimes I have to power off it and the server2 will be the new master because of the failover. What I need is to make the server1 the new master when it is powered on again.</div><div><br></div><div>I appreciate any help you can provide.</div><div>Thanks in advance.</div><div><br></div><div>Best,</div><div>Jesús</div></div>