Percona-Lab / pg_tde

MIT License
107 stars 19 forks source link

Fix update duplication after crashfix #69

Closed dutow closed 10 months ago

dutow commented 10 months ago

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