Learn how to properly configure your Postgres database for change data capture with Sequin.
connect
permission on the database.select
permission on all the tables you want to connect to Sequin.replication
permission to read from replication slots.wal_level
must be set to logical
.
If it’s not, you’ll need to enable it. Note that this requires a restart of your database.
Follow these steps to enable logical replication:
Locate your postgresql.conf file
/etc/postgresql/<version>/main/postgresql.conf
/usr/local/var/postgresql@<version>/postgresql.conf
C:\Program Files\PostgreSQL\<version>\data\postgresql.conf
Edit postgresql.conf
wal_level
setting, add it at the end of the file.Restart PostgreSQL
show wal_level;
command again to verify the change took effect.
Slot name and publication name
Create slot and publication
Test connection
Connect
alter publication
command: