1. Connect to current master
[postgres@app-pgsql01 ~]$ psql -h 192.168.1.88 -p 5000 -d db777 -U postgreadmin -W
psql> select inet_server_addr();
2. Simulation of failure of the MASTER node
[root@pgsql-db01 ~]# poweroff
3. Check current connection
[postgres@app-pgsql01 ~]$ psql -h 192.168.1.88 -p 5000 -d db777 -U postgreadmin -W
psql> select inet_server_addr();
No comments:
Post a Comment