Postgres-streaming-replication-script
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Initiates PostgreSQL streaming replication using rsync and ssh
Postgres-streaming-replication-script
=====================================

Usage
-----
	./create_slave_with_rsync.bash $master_ip

Requirments
-----------
	* A Recovery.conf (Or recovery.done) in the postgresql data directroy
	* An archive directory eg: /var/lib/postgresql/9.2/archive/
	* A Replication user  eg: /usr/bin/psql -c "CREATE ROLE $name REPLICATION LOGIN PASSWORD $password"
	* An entry for the replication user in ph_hba.conf (eg: host all $name 192.168.1.100/32 trust)
	* the postgresql-contrib-9.* package (Provides pg_archivecleanup)
	* A postgres server designated as master with these setting in postgresql.conf

		wal_level = hot_standby
		archive_mode = on
		archive_command = 'cp -i "%p" /var/lib/postgresql/9.2/archive/"%f"   
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。