Files
oam/knowledge base/peerdb.md
2024-11-06 21:19:10 +01:00

1.3 KiB

PeerDB

Fast, simple, and cost effective Postgres replication.

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Setup
Check requirements
sourceDb=> SELECT name,setting FROM pg_settings WHERE name IN ('wal_level','rds.logical_replication');
          name           | setting
-------------------------+---------
 rds.logical_replication | on
 wal_level               | logical
(2 rows)
ALTER SYSTEM SET wal_level = logical;
ALTER SYSTEM SET max_wal_senders = 10;
ALTER SYSTEM SET max_replication_slots = 10;

Further readings

Sources