Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DBZ-PGYB] Changes to support all operations with all replica identities #130

Merged
merged 34 commits into from
Jun 25, 2024

Conversation

vaibhav-yb
Copy link
Collaborator

@vaibhav-yb vaibhav-yb commented Jun 3, 2024

This PR adds the changes to the connector required to support all kinds of operations supported by YugabyteDB when coupled with various replica identities.

One change to note here would be that in case of DEFUALT replica identity, Postgres sends out the before image of the primary key column in case of DELETE and UPDATE operations. Meanwhile, YugabyteDB only sends out the before image of primary key in case of DELETE operations, and if a primary key itself is updated, YugabyteDB sends two events:

  1. Delete for the existing row
  2. Insert with the new value of the primary key

Additionally to test out everything, we have a new test class YugabyteReplicaIdentityIT.

@vaibhav-yb vaibhav-yb added the enhancement New feature or request label Jun 3, 2024
@vaibhav-yb vaibhav-yb self-assigned this Jun 3, 2024
@vaibhav-yb vaibhav-yb changed the base branch from ybdb-debezium-252-vaibhav to ybdb-debezium-2.5.2 June 25, 2024 11:20
@vaibhav-yb vaibhav-yb merged commit 9890544 into ybdb-debezium-2.5.2 Jun 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants