退出cmd
\q
postgresql.conf parameters:
wal_level = hot_standby (make log support Streaming Replication);
archive_mode = on;
archive_command = 'xxx',指定归档的保存方法;
hot_standby = on,备库启动为standby模式时可实现只读查询
openstack的postgresDB的设置为如上
退出cmd
\q
postgresql.conf parameters:
wal_level = hot_standby (make log support Streaming Replication);
archive_mode = on;
archive_command = 'xxx',指定归档的保存方法;
hot_standby = on,备库启动为standby模式时可实现只读查询
openstack的postgresDB的设置为如上