streaming_replication
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| streaming_replication [2011/07/25 16:34] – k2patel | streaming_replication [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ==== postgresql.conf ==== | ==== postgresql.conf ==== | ||
| - | < | + | < |
| listen_addresses = ' | listen_addresses = ' | ||
| port = 5435 #### Only Define if you running on non default port. | port = 5435 #### Only Define if you running on non default port. | ||
| Line 30: | Line 30: | ||
| </ | </ | ||
| - | pg_hba.conf | + | Setup access rule. |
| - | ^^^^^^^^^^^ | + | |
| + | <code bash | pg_hba.conf> | ||
| # | # | ||
| hostssl | hostssl | ||
| + | </ | ||
| + | Postgres restart on Master | ||
| + | <code bash> | ||
| bin/pg_ctl -p bin/ | bin/pg_ctl -p bin/ | ||
| bin/pg_ctl -p bin/ | bin/pg_ctl -p bin/ | ||
| + | </ | ||
| + | Sync current data over Rsync. | ||
| + | <code bash> | ||
| bin/psql -c " | bin/psql -c " | ||
| rsync -av data/ < | rsync -av data/ < | ||
| bin/psql -c " | bin/psql -c " | ||
| + | </ | ||
| ==== Recovery.conf ==== | ==== Recovery.conf ==== | ||
streaming_replication.1311611668.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
