This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
Primary key updates handled incorrectly in LOG_BASED replication #92
Labels
bug
Something isn't working
Describe the bug
Primary key updates handled incorrectly in LOG_BASED replication, causing old data to be kept in target tables.
To Reproduce
Steps to reproduce the behavior:
in consume_message, following wal2json payload is read:
pipelinewise-tap-postgres/tap_postgres/sync_strategies/logical_replication.py
Line 372 in 8c4732e
Expected behavior
In target table row with PK [2, 5, 1] is updated to [2, 10, 1]
Actual result
In target table row with PK [2, 5, 1] is kept and row with PK [2, 10, 1] is added.
Target table now contains row [2, 5, 1] which has been deleted from source.
Your environment
The text was updated successfully, but these errors were encountered: