-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update events are missing the "before" in payload #70
Comments
You have to enable REPLICA IDENTITY FULL. I just don't remember if this is already merged or if you have to wait for 2.12. |
Yes, 2.12 includes all the necessary changes: timescale/timescaledb#6086 Not sure if the packages are already available though. This version also includes a way to prevent decompressions / decompressions to create insert events. |
ok, thanks for the information :) |
Btw, the related commits are:
Specifically the last one is the PR to help with decompression/recompression by providing a begin- and end-marker before larger decompressions which will potentially create insert events. It's basically hiding some internal behavior. To enable the support you need to set The support is already available in the tool for a while and should automatically be enabled when it sees a 2.12 TimescaleDB instance (https://github.com/noctarius/timescaledb-event-streamer/blob/main/internal/replication/logicalreplicationresolver/transactiontracker.go#L67). Without the above property the TimescaleDB extension will not generate the necessary markers though. I'll add a 2.12 test suite when the docker image is available :) |
Fixes #70: Implemented unit test and check for replica identity
Update events are missing the "before"-data in the payload, the "after" is present. This makes it hard to further work with the data and perform the correct update in a second database.
example output of an update event using
sink.type = 'stdout'
:I am not sure if this is intended or can be enabled with a setting that I overlooked.
Versions:
The text was updated successfully, but these errors were encountered: