Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the toasted column in encrypted table causes the crash (#82)
pg_tde_toast_insert_or_update calls pg_tde_deform_tuple on old-tuple from within and tries to dereference the toast columns. Passing the encrypted tuple as part of the old tuple renders the toast data pointer (the encrypted value of the actual pointer) invalid, and anything can happen if it gets dereferenced as it is. The solution is to pass the decrypted old tuple pg_tde_toast_insert_or_update function from pg_tde_update.
- Loading branch information