Vrishin Vigneshwar V
09/24/2024, 5:59 AMuser
09/24/2024, 5:59 AMREPLICATION
role: sql SELECT pg_create_logical_replication_slot('airbyte_slot', 'pgoutput');
The output of this command will include the name of the replication slot to fill into the Airbyte source setup page [source](https://docs.airbyte.com/integrations/sources/postgres#step-4-create-a-replication-slot-on-your-postgres-database). When setting up the source and destination in Airbyte, you can instantiate a Postgres source connector and a Postgres destination connector [source](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication). If you're upgrading to Destinations V2, you can optionally dual write, but this requires resyncing historical data from the source. You must create a new Postgres source with a different replication slot than your existing source to preserve the integrity of your existing connection [source](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#upgrade-paths-for-connections-using-cdc).Vrishin Vigneshwar V
09/24/2024, 6:47 AMuser
09/24/2024, 6:47 AMuser
09/24/2024, 6:47 AMpg_create_logical_replication_slot
command multiple times, each time with a different slot name. For example: sql SELECT pg_create_logical_replication_slot('airbyte_slot1', 'pgoutput'); SELECT pg_create_logical_replication_slot('airbyte_slot2', 'pgoutput');
Each command will return the name of the replication slot, which you can then use to set up a separate connection in Airbyte [source](https://docs.airbyte.com/integrations/sources/postgres#step-4-create-a-replication-slot-on-your-postgres-database).Vrishin Vigneshwar V
09/24/2024, 9:28 AMuser
09/24/2024, 9:31 AMuser
09/24/2024, 9:32 AMpg_create_logical_replication_slot
command with the pgoutput
plugin: sql SELECT pg_create_logical_replication_slot('airbyte_slot', 'pgoutput');
The output of this command will include the name of the replication slot to fill into the Airbyte source setup page [source](https://docs.airbyte.com/integrations/sources/postgres#step-4-create-a-replication-slot-on-your-postgres-database).Vrishin Vigneshwar V
09/24/2024, 9:32 AMuser
09/24/2024, 9:32 AMuser
09/24/2024, 9:33 AMsql SELECT pg_create_logical_replication_slot('airbyte_slot', 'pgoutput');
The output of this command will include the name of the replication slot to fill into the Airbyte source setup page [source](https://docs.airbyte.com/integrations/sources/postgres#step-4-create-a-replication-slot-on-your-postgres-database). If you want to consume data from multiple replication slots, you should set up multiple sources in Airbyte, each associated with a different replication slot.