Bounded historical sync / re-sync, then unrestricted CDC, keeping existing destination rows
Which connector?:
Connector / destination: PostgreSQL (logical replication via replication slot) → Snowflake. Ref: support ticket #433544.
Additional details:
Problem
A full historical sync is forced when:
- the replication slot is dropped or invalidated (e.g. after DB maintenance or VACUUM FULL WAL growth),
-
max_slot_wal_keep_sizeis exceeded, or - a single table needs a re-sync.
On our large tables, such as buyerinvoice.invoiceaudittrail, this re-imports the whole history and takes a long time. That delays releases and slows downstream transforms. The destination already holds most of that history, so a full re-import is unnecessary.
Current limitation
- Row Filtering applies to both historical and incremental syncs. Changes to excluded rows are never replicated.
- Removing a filter triggers another full re-sync.
- Rows already in the destination that fall outside the filter are reconciled: soft-deleted, closed in history mode, or deleted in live mode. This also adds MAR (monthly active rows).
- There is no connection-level historical date cutoff.
Requested capability
- Let us set a per-table historical filter (timestamp column such as
updated_at, or TenantID) that applies only to the historical sync or re-sync. - Once that bounded sync completes, CDC resumes for all rows automatically, with no further re-sync.
- Destination rows outside the filter stay as they are: not marked deleted, not closed in history mode, not removed in live mode, and no MAR charged for them.
- CDC changes to older rows after the sync are applied normally: inserted as an upsert if the row is missing, or updated if it exists.
- Optionally, the same capability at connection level, as a cutoff date for all tables when a connection-wide re-sync is triggered.
Business impact
- Recovery after a slot loss drops from days to hours.
- Release timelines are protected.
- Less load on the source database and Snowflake.
- Lower MAR cost.
Please sign in to leave a comment.
Comments
0 comments