Sean Kibler
02/05/2025, 9:23 PMkapa.ai
02/05/2025, 9:23 PMsql CREATE PUBLICATION airbyte_publication FOR TABLES IN SCHEMA public; SELECT pg_create_logical_replication_slot('airbyte_slot', 'pgoutput');
Make sure to adjust the schema name if you're not using the public schema. 3. In Airbyte, you'll need to reset the connection and perform a full resync. This is because the CDC state will be lost when the replication slot is dropped. 4. After the full resync, subsequent syncs should resume incremental CDC as normal. It's worth noting that this process will effectively restart your CDC process from scratch, so there may be a period where you'll need to sync all data again. Additionally, for future upgrades, you might want to consider the recommendation from the [Upgrading to Destinations V2 documentation](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#upgrade-paths-for-connections-using-cdc): "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." This approach could potentially allow you to maintain continuity during upgrades, though it would require setting up a parallel connection. Remember to monitor your syncs after the upgrade to ensure they're functioning as expected with the new PostgreSQL version.William Whelan
02/12/2025, 2:45 AMSean Kibler
02/12/2025, 3:52 PM