PostgreSQL 11 Administration Cookbook
by Simon Riggs, Gianni Ciolli, Sudheer Kumar Meesala, Sheldon Strauch
How to do it…
On the standby node, changes from the master are read from the transaction log and applied to the standby database. Hot standby works by emulating running transactions from the master so that queries on the standby have the visibility information they need to respect MVCC. This makes the hot standby mode particularly suitable for serving a large workload of short or fast SELECT queries. If the workload is consistently short, then few conflicts will delay the standby and the server will run smoothly.
Queries that run on the standby node see a version of the database that is slightly behind the primary node. Eventually, we describe this as being consistent. How long is eventually? That time is exactly the replication delay plus ...
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