January 2019
Beginner
556 pages
14h 19m
English
There is another physical replication scenario that can work on top of log shipping or without log shipping at all: streaming replication. Streaming replication implies a connection between the standby and the master servers. The master would send all transaction log entries directly to the standby. By doing this, the standby will have all the recent changes without waiting for the WAL files to be archived.
To set up streaming replication, in addition to the steps mentioned previously, the following should be done on the master:
postgres=# CREATE USER streamer REPLICATION PASSWORD 'secret';CREATE USER
Read now
Unlock full access