Add use_db_compression option for backup database dumps#2106
Merged
rooftopcellist merged 1 commit intoansible:develfrom Mar 24, 2026
Merged
Add use_db_compression option for backup database dumps#2106rooftopcellist merged 1 commit intoansible:develfrom
rooftopcellist merged 1 commit intoansible:develfrom
Conversation
3f9c287 to
9e2911d
Compare
9e2911d to
ff7be91
Compare
ff7be91 to
59a8f91
Compare
Adds a use_db_compression CRD field (default: true) that controls pg_dump compression level. When enabled (default), pg_dump uses its built-in compression. When disabled, passes -Z 0 for uncompressed dumps. pg_restore handles both transparently, so no filename or restore logic changes are needed. Authored By: Christian M. Adams <chadams@redhat.com> Assisted By: Claude
6dee6f1 to
38499e0
Compare
dsavineau
approved these changes
Mar 24, 2026
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.
Summary
use_db_compressionboolean field (default:true) to AWXBackup CRD and backup role defaults-Z 0to pg_dump for uncompressed dumpspg_restorehandles both compressed and uncompressed custom-format dumps transparently — no restore logic changes neededPart of AAP-38759 (OCP Operator DB Compression).
ISSUE TYPE
Test plan
use_db_compression: true— verify backup succeedsuse_db_compression: false— verify uncompressed backup succeeds