Chapter 5. Setting up Synchronous Replication
Up to now we have dealt with file-based replication (or log shipping) and a simple streaming-based setup. In both cases, data is submitted and received by the slave(s) after the transaction has been committed on the master. During the time between the master's commit and the the point when the slave actually has fully received the data, it can still be lost.
In this chapter we will learn about the following topics:
- Making sure that no single transaction can be lost
- Configuring PostgreSQL for synchronous replication
- Understanding and using
- The performance impact of synchronous replication
- Optimizing replication for speed
Setting up synchronous replication
As mentioned before, synchronous replication ...