-
Notifications
You must be signed in to change notification settings - Fork 23
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
Remove full tuple encrytion #4
Conversation
Leaving tuple data (attributes) only encrytion
src/encryption/enc_tuple.c
Outdated
@@ -80,7 +80,7 @@ static void PGTdeDecryptTupInternal2(BlockNumber bn, Page page, HeapTuple tuple, | |||
// Most of the time we can't decrypt in place, so we allocate some memory... and leek it for now :( | |||
if(allocNew) | |||
{ | |||
newPtr = malloc(tuple->t_len); | |||
newPtr = palloc0(tuple->t_len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 34ca182
@@ -138,37 +114,30 @@ PGTdePageAddItemExtended(Oid oid, | |||
|
|||
char* toAddr = ((char*)phdr) + phdr->pd_upper; | |||
|
|||
#if FULL_TUPLE_ENCRYPTION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also don't need the define at the top of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 34ca182
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Please use squash and merge
so we won't end up with fixup comments in the main history :)
Leaving tuple data (attributes) only encrytion