-
Notifications
You must be signed in to change notification settings - Fork 19
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 statement broken after PR67 #68
Labels
bug
Something isn't working
Comments
dutow
added a commit
to dutow/postgres-tde-ext
that referenced
this issue
Nov 13, 2023
Issue: with the fix in Percona-Lab#67, pgtde decrypts tuples during update into a new memory region, and changes the t_data pointer to this new region. Because of this, later updates to tuple flags also happen in the new data, and the original persisted tuple flags are never updated. Fix: after the update statement is done with the decrypted data, restore the t_data pointer to the original. This way, flag changes happen where they should. Fixes Percona-Lab#68
dutow
added a commit
to dutow/postgres-tde-ext
that referenced
this issue
Nov 13, 2023
Issue: with the fix in Percona-Lab#67, pgtde decrypts tuples during update into a new memory region, and changes the t_data pointer to this new region. Because of this, later updates to tuple flags also happen in the new data, and the original persisted tuple flags are never updated. Fix: after the update statement is done with the decrypted data, restore the t_data pointer to the original. This way, flag changes happen where they should. Fixes Percona-Lab#68
dutow
added a commit
that referenced
this issue
Nov 15, 2023
Issue: with the fix in #67, pgtde decrypts tuples during update into a new memory region, and changes the t_data pointer to this new region. Because of this, later updates to tuple flags also happen in the new data, and the original persisted tuple flags are never updated. Fix: after the update statement is done with the decrypted data, restore the t_data pointer to the original. This way, flag changes happen where they should. Fixes #68
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After 67, UPDATE statement adds new rows instead of updating the previous ones
The text was updated successfully, but these errors were encountered: