<@U04S8PLJWMT>, i have source and destination as p...
# ask-ai
s
@kapa.ai, i have source and destination as postgres aurora aws if i do manual updates in source they are don’t getting picked in incremental append runs
k
Thinking completed Manual updates are most likely missed because the cursor field wasn't updated along with the row. This is a known limitation of Incremental sync. Why this happens Incremental syncs extract changed rows with a query like this:
Copy code
SELECT * FROM table WHERE cursor_field >= 'last_sync_max_cursor_field_value'
If you edit a row but the cursor column (for example
updated_at
) doesn't increase beyond the last synced maximum, the row isn't emitted. [Known limitations] Also, if a row is modified several times between syncs, only its state at sync time is reflected in the destination. [Known limitations] Options 1. Update the cursor field with your manual edits. For example, set
updated_at = now()
whenever you change a row. 2. Use Xmin replication. It tracks inserts and updates through the Postgres
xmin
system column, so you don't need a cursor field. It isn't suitable for heavy-write databases at risk of transaction ID wraparound, and it doesn't support non-materialized views. [Postgres methods] 3. Use CDC. It reads the Postgres write-ahead log (WAL) via logical replication, so it captures changes (including deletes) regardless of cursor values. [Postgres methods] > Note: Incremental | Append never mutates existing destination records. Updated rows are appended as new copies, so you may see multiple versions of the same record. [Incremental Append] The knowledge sources don't cover Aurora-specific settings, such as enabling logical replication for CDC. If you go the CDC route, check your Aurora configuration separately. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
s
@kapa.ai, but i am using cdc method for incremental append it still won’t get picked up ?
k
Thinking completed Since you're on Aurora with CDC, the most likely cause is Aurora's CDC caching layer, along with a few CDC setup requirements. The knowledge sources don't pinpoint your exact issue, so here is what to check. 1. Disable Aurora's CDC caching layer Aurora's write-through CDC cache is incompatible with Airbyte's CDC implementation. Set
rds.logical_wal_cache
to
0
in the Aurora parameter group. [Aurora limitations] 2. Confirm logical replication is enabled Set
rds.logical_replication
to
1
in your cluster parameter group, then restart the instance. [Enable logical replication] 3. Check the publication and replica identity • The table must be part of your publication. If you select a table in the UI that isn't in the publication, it won't be replicated. [Publication setup] • Each table needs a replication identity, for example
ALTER TABLE tbl1 REPLICA IDENTITY DEFAULT;
. [Publication setup] 4. Check CDC limitations • The table needs a primary key for incremental sync. [CDC requirements] • Changes must be made with
INSERT
,
UPDATE
or
DELETE
.
TRUNCATE
and
ALTER
don't appear in the logs. [CDC requirements] • Data must be in tables, not views. [CDC requirements] • Schema changes aren't handled automatically. Reset and resync if you changed the schema. [CDC requirements] • CDC works from the primary instance. Reading from a replica requires Postgres 16.1+ and connector version 3.6.21+. [CDC requirements] What to expect in the destination With CDC, each update is captured as a separate record, so intermediate states are preserved. A single row may therefore appear multiple times in an append destination. [CDC tutorial] If all of this checks out and updates are still missing, the knowledge sources don't contain enough information to diagnose further. Please share the sync logs and your source configuration (replication method, publication, and replication slot). 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.