Conversation
- Add LZ4_COMPRESS to CompressAlg enum - Implement lz4_compress/lz4_decompress functions using LZ4 and LZ4_HC - Support compression levels 0 (fast) and 1-12 (HC high compression) - Add liblz4 detection in Makefile via pkg-config - Add liblz4-dev to Travis CI dependencies - Add runtime validation for LZ4 compression level - Update help strings to include 'lz4' option - Add compression tests for LZ4 (stream, archive, levels)
Add new tests for LZ4 compression feature: - test_merge_lz4_backups: MERGE with LZ4 compressed backups chain - test_validate_lz4_backup: VALIDATE for LZ4 compressed backups - test_mixed_compression_chain_zlib_lz4: mixed compression chain restore - test_merge_mixed_compression_zlib_lz4: MERGE with mixed algorithms - test_lz4_incompressible_data: random/incompressible data handling - test_lz4_empty_and_sparse_tables: edge cases with empty/sparse tables Also fix linter warnings: - Remove unused imports (idx_ptrack, datetime, timedelta, subprocess) - Remove unused variables in test_lz4_compression_levels - Apply ruff formatting to entire file
Replace gen_random_bytes() from pgcrypto with md5(random()) concatenation to generate pseudo-random data. This avoids dependency on pgcrypto extension which may not be available in CI environment.
5b8fd7b to
5eb7681
Compare
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
Changes
src/data.csrc/pg_probackup.hBuild requirements
liblz4-devpackage required for LZ4 supportUsage