Enabling Physical Replication
Since you’ll need multiple instances to work with, you’ll set up PostgreSQL instances in Docker containers. These containers run PostgreSQL as their main process. You’ll use one container (db01) to act as a primary instance and then set up additional containers as replica instances. This is a long chapter, but if you stick with it, you’ll configure both physical and logical replication, providing a foundation to build on top of.
Database Configuration | |
---|---|
There’s a lot of database configuration needed to set up replication. As a Rails developer, this might be way outside the typical work that you do. Just remember, you’ve ... |
Get High Performance PostgreSQL for Rails now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.