postgresql9.5主从切换

pg_ctl promote -D /data/xxx
standby_mode = 'on'
primary_conninfo = 'user=replicator password=1qaz2wsx host=192.168.216.132 port=5432 sslmode=disable sslcompression=1'
primary_slot_name = 'pgsql95_134'
recovery_target_timeline = 'latest'
posted @ 2020-06-16 20:45  也曾少年  阅读(192)  评论(0编辑  收藏  举报