Cascading replication
If we have several streaming replicas, older versions of PostgreSQL required replica servers to connect directly to the primary server. PostgreSQL allows streaming replicas to subscribe to other replicas in versions 9.3 and above. We can further reduce strain on the primary database server by offloading replication duties to a topology of alternate servers using this capability.
This chaining includes backup features. The pg_basebackup tool puts PostgreSQL in backup mode by invoking the pg_start_backup() function. As this function writes to the database, it normally can't be used on a streaming replica because it's read-only. However, chaining replication makes it possible to use pg_basebackup on standby servers. This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access