Re: streaming replication + wal shipping

From: senthilnathan <senthilnathan(dot)t(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: streaming replication + wal shipping
Date: 2014-04-15 08:28:06
Message-ID: 1397550486664-5800081.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

*postgresql.conf:*
wal_level = hot_standby
hot_standby = on
archive_mode = on
archive_command = 'cp %p ../archive/%f'
## "archive" parallel to data directory
max_wal_senders = 10
## number of slaves

*recovery.conf(in slave)*
restore_command = 'cp ../archive/%f "%p"'
standby_mode = 'on'
primary_conninfo = 'host=MASTERIP port=5432 user=REPLUSER password=REPLPASS'
trigger_file = '/tmp/pg_failover_trigger'
recovery_target_timeline='latest'

*pg_hba.conf*
host replication REPLUSER 0.0.0.0/0 md5

The above entries to be added for replication to be configured.

-Senthil

--
View this message in context: http://postgresql.1045698.n5.nabble.com/streaming-replication-wal-shipping-tp5799821p5800081.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rémi Cura 2014-04-15 09:25:37 Re: efficient way to do "fuzzy" join
Previous Message Alberto Cabello Sánchez 2014-04-15 06:21:48 Re: Trouble installing Slony 2.0