-
Notifications
You must be signed in to change notification settings - Fork 11
PG-1862 Use system() over exec() for archive/restore commands #526
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
PG-1862 Use system() over exec() for archive/restore commands #526
Conversation
It's decrypt, not deceypt.
EDIT: I was missing something. |
Codecov Report❌ Patch coverage is ❌ Your project status has failed because the head coverage (82.07%) 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 #526 +/- ##
=====================================================
- Coverage 82.19% 82.07% -0.13%
=====================================================
Files 25 25
Lines 3174 3168 -6
Branches 515 504 -11
=====================================================
- Hits 2609 2600 -9
- Misses 456 461 +5
+ Partials 109 107 -2
🚀 New features to boost your workflow:
|
0924dc5
to
81fea7b
Compare
7a825ad
to
f074219
Compare
Use a single argument for the wrapped command in the archivation wrappers. Instead of giving all of the arguments of the command separately and trying to figure out which one should be replaced by the path to the unencrypted WAL segment, we take a single argument and do % parameter replacement similar to what postgres does with archive_command and restore_command. This also mean that we can simplify by using system() instead of exec(). We also clean up usage instructions and make the two wrappers more symmetrical by requiring the same parameters. Co-authored-by: Andreas Karlsson <[email protected]>
f074219
to
423d614
Compare
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.
Really nice PR!
f508287
into
percona:TDE_REL_17_STABLE
Use a single argument for the wrapped command in the archivation wrappers.
Instead of giving all of the arguments of the command separately and trying to figure out which one should be replaced by the path to the unencrypted WAL segment, we take a single argument and do % parameter replacement similar to what postgres does with archive_command and restore_command.
This also mean that we can simplify by using system() instead of exec().
Replaces: #522
https://perconadev.atlassian.net/browse/PG-1862