Skip to content
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

Merged
merged 3 commits into from
Aug 21, 2023
Merged

Remove full tuple encrytion #4

merged 3 commits into from
Aug 21, 2023

Conversation

dAdAbird
Copy link
Member

Leaving tuple data (attributes) only encrytion

Leaving tuple data (attributes) only encrytion
@@ -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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change

Copy link
Member Author

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
Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 34ca182

@dAdAbird dAdAbird requested a review from dutow August 21, 2023 13:33
Copy link
Collaborator

@dutow dutow left a 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 :)

@dAdAbird dAdAbird merged commit 7317998 into tuple_enc Aug 21, 2023
@dAdAbird dAdAbird deleted the only_data_enc branch August 21, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants