Skip to content

Commit 50b55b7

Browse files
authored
Fix issue-153: Server crash and database corruption (#165)
* Fix issue-153: Server crash and database corruption We can't use the Tuple CID as an IV because it changes when the tuple is deleted. If we have a trigger function that needs the deleted tuple, it will get the wrong IV when decrypting. This happens because the CID used to encrypt the tuple (during INSERT/UPDATE) is different from the CID passed to the decryption function (during delete). To fix this, we need to stop using the CID for IV calculation. * Update test case to produce same result on all environment
1 parent 25b7794 commit 50b55b7

File tree

5 files changed

+1072
-7
lines changed

5 files changed

+1072
-7
lines changed

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ move_large_tuples \
1212
non_sorted_off_compact \
1313
update_compare_indexes \
1414
pgtde_is_encrypted \
15+
test_issue_153_fix \
1516
multi_insert \
1617
trigger_on_view \
1718
insert_update_delete \

0 commit comments

Comments
 (0)