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

Handle recreated relations in smgr encryption #315

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

dutow
Copy link
Collaborator

@dutow dutow commented Oct 12, 2024

Previously operations that created a new relation file for some reason (truncate for example) resulted in a new unencrypted file, even if the original file was encrypted.

This commit changes this behavior to properly create a new internal key for the new internal file in this case.

This only works in pair with the related core change in the postgres repository.

@dutow dutow force-pushed the smgrcreatefix branch 2 times, most recently from fb22f4f to 6bb4c11 Compare October 13, 2024 04:05
@dutow dutow force-pushed the smgrcreatefix branch 5 times, most recently from ed31d2e to c9c0294 Compare November 12, 2024 20:30
@dutow dutow requested a review from artemgavrilov as a code owner November 12, 2024 20:30
Previously operations that created a new relation file for some
reason (truncate for example) resulted in a new unencrypted file,
even if the original file was encrypted.

This commit changes this behavior to properly create a new internal
key for the new internal file in this case.

This only works in pair with the related core change in the postgres
repository.
@dutow dutow merged commit 510c5c3 into percona:main Nov 13, 2024
1 of 13 checks passed
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.

2 participants