Core PostgreSQL only gives you the promote command; detecting the failure, choosing a standby and fencing the old primary is done by external tools such as Patroni or repmgr.
Failover
Switching to a standby as the new primary when the old one fails.
Core PostgreSQL only gives you the promote command; detecting the failure, choosing a standby and fencing the old primary is done by external tools such as Patroni or repmgr.