PG-1444 Implement deletion of relation keys when dropping relations#238
Merged
jeltz merged 2 commits intopercona:TDE_REL_17_STABLEfrom Apr 22, 2025
Merged
PG-1444 Implement deletion of relation keys when dropping relations#238jeltz merged 2 commits intopercona:TDE_REL_17_STABLEfrom
jeltz merged 2 commits intopercona:TDE_REL_17_STABLEfrom
Conversation
This code is dead and there is no plan to re-use it any time soon.
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your project status has failed because the head coverage (76.18%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## TDE_REL_17_STABLE #238 +/- ##
=====================================================
+ Coverage 76.15% 76.18% +0.02%
=====================================================
Files 23 22 -1
Lines 2520 2456 -64
Branches 393 384 -9
=====================================================
- Hits 1919 1871 -48
+ Misses 524 511 -13
+ Partials 77 74 -3
🚀 New features to boost your workflow:
|
3c1bb0e to
8ccb9e6
Compare
Replaces the old way we deleted keys which was built for tde_heap_basic with deleting the the relation key when smgr_unlink() is called on the main fork. This function is always called after commit/abort when a relation deletion has been registered, even if no main fork would exist. This approach means we do not need to WAL log any event for deleting relation keys, the normal SMGR unlink also handles that which fits well into the current approach of doing most of the encryption at the SMGR layer. We also remove the subtransaction test which is no longer useful since it tested things very specific to the old key deleteion.
8ccb9e6 to
58dcf89
Compare
dAdAbird
approved these changes
Apr 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces the old way we deleted keys which was built for
tde_heap_basicwith deleting the the relation key when
smgr_unlink()is called on themain fork. This function is always called after commit/abort when a
relation deletion has been registered, even if no main fork would exist.
This approach means we do not need to WAL log any event for deleting
relation keys, the normal SMGR unlink also handles that which fits well
into the current approach of doing most of the encryption at the SMGR
layer.