1. Set wal_level to logical
In your postgresql.conf file or via a SQL client, set the wal_level parameter to logical.
If you plan to create multiple CDC sources, ensure the
max_wal_senders parameter in your postgresql.conf is greater than or equal to the number of sources you intend to create. The default value is typically 10.2. Create a dedicated replication user
Create a dedicated PostgreSQL user for replication. This user needs theREPLICATION and LOGIN attributes.