Syed Hamza Raza Kazmi
10/28/2024, 6:49 AMuser
10/28/2024, 6:49 AMsql ALTER TABLE tbl1 REPLICA IDENTITY DEFAULT; CREATE PUBLICATION airbyte_publication FOR TABLE tbl1, tbl2, tbl3;
[Documentation on CDC setup](https://docs.airbyte.com/integrations/sources/postgres#step-5-create-publication-and-replication-identities-for-each-postgres-table) 2. Sync Mode: Your current sync mode is "Incremental | Append". When switching to CDC, you should keep this sync mode to take full advantage of CDC. This will ensure that only changed rows are synced to the destination. [Airbyte CDC tutorial](https://airbyte.com/tutorials/postgresql-change-data-capture-elt#step-5) 3. Existing Data: When you switch to CDC, Airbyte will need to perform a full refresh of the existing tables to establish a new baseline. This is because CDC tracks changes from a specific point in time, and Airbyte needs to ensure it has the most up-to-date data before starting to track changes. 4. Resetting Existing Tables: Unfortunately, as of now, when you add a new replication method or make significant changes to an existing connection, Airbyte requires you to reset all existing tables. This means your existing destination tables will be cleared and re-synced from the beginning. [Forum discussion on adding new tables to CDC](https://discuss.airbyte.io/t/963) 5. Data Consistency: After the initial full refresh, CDC will provide a more accurate representation of your source data, including intermediate changes and deletions, which the xmin method cannot capture. [CDC vs other replication modes](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication) In summary, switching from xmin to CDC will require you to reset and re-sync your existing tables, but it will provide more comprehensive change tracking for your data going forward. Make sure to plan for downtime or data unavailability during the switch and initial sync process.Syed Hamza Raza Kazmi
10/28/2024, 6:52 AMuser
10/28/2024, 6:54 AMSyed Hamza Raza Kazmi
10/28/2024, 6:56 AMuser
10/28/2024, 6:56 AMuser
10/28/2024, 6:56 AM