Requirements
- PostgreSQL version 10 or above.
- Connect to the primary instance. Logical replication only works on the primary.
- Tables with a
PRIMARY KEY. - Network access from Integrate.io to your database (direct, SSH tunnel, or reverse SSH tunnel).
Enable logical replication
Setwal_level to logical:
Allow the sync user to replicate
Inpg_hba.conf, ensure the sync user has both regular and replication connection entries from the Integrate.io source IPs, for example:
pg_hba.conf.
After creating the sync user (see the common setup), grant the replication attribute:
Next: common setup
Continue with the canonical PostgreSQL setup for the remaining steps — sync user privileges (USAGE, SELECT, REFERENCES), heartbeat table, publication, and replication slot: