Skip to content

Add compress-level range checking for each compress-type. - #1962

Merged
dwsteele merged 8 commits into
pgbackrest:integrationfrom
dwsteele:dev-cmp-range
Dec 27, 2022
Merged

dwsteele merged 8 commits into
pgbackrest:integrationfrom
dwsteele:dev-cmp-range

Conversation

@dwsteele

Copy link
Copy Markdown
Member

The prior range checking was done based on the valid values for gz. While this worked it was a subset of what is available for lz4 and zst.

Allow the range to be specified for each compress-type. Adding this functionality to the parse module would be a better solution but that is a bigger project than this fix deserves, at least for now.

@pgstef pgstef left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Except for the error message, this PR looks good to me 👍

Comment thread src/config/load.c Resolved
@dwsteele
dwsteele merged commit 44da314 into pgbackrest:integration Dec 27, 2022
@dwsteele
dwsteele deleted the dev-cmp-range branch December 27, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong limits for zstd compression level No way to set compression level more 9 for zstd

2 participants