Re: Add LZ4 compression in pg_dump
gkokolatos@pm.me
Attachments
- v11-0002-Prepare-pg_dump-internals-for-additional-compres.patch (text/x-patch) patch v11-0002
- v11-0003-Introduce-Compressor-API-in-pg_dump.patch (text/x-patch) patch v11-0003
- v11-0004-Add-LZ4-compression-in-pg_-dump-restore.patch (text/x-patch) patch v11-0004
- v11-0001-Teach-pg_dump-about-compress_spec-and-use-it-thr.patch (text/x-patch) patch v11-0001
------- Original Message ------- On Wednesday, November 30th, 2022 at 1:50 AM, Michael Paquier <michael@paquier.xyz> wrote: > > > On Tue, Nov 29, 2022 at 12:10:46PM +0000, gkokolatos@pm.me wrote: > > > Thank you. Please advice if is preferable to split 0002 in two parts. > > I think not but I will happily do so if you think otherwise. > > > This one makes me curious. What kind of split are you talking about? > If it makes the code review and the git history cleaner and easier, I > am usually a lot in favor of such incremental changes. As far as I > can see, there is the switch from the compression integer to > compression specification as one thing. The second thing is the > refactoring of cfclose() and these routines, paving the way for 0003. > Hmm, it may be cleaner to move the switch to the compression spec in > one patch, and move the logic around cfclose() to its own, paving the > way to 0003. Fair enough. The atteched v11 does that. 0001 introduces compression specification and is using it throughout. 0002 paves the way to the new interface by homogenizing the use of cfp. 0003 introduces the new API and stores the compression algorithm in the custom format header instead of the compression level integer. Finally 0004 adds support for LZ4. Besides the version bump in 0003 which can possibly be split out and as an independent and earlier step, I think that the patchset consists of coherent units. > By the way, I think that this 0002 should drop all the default clauses > in the switches for the compression method so as we'd catch any > missing code paths with compiler warnings if a new compression method > is added in the future. Sure. > Anyway, I have applied 0001, adding you as a primary author because > you did most of it with only tweaks from me for pg_basebackup. The > docs of pg_basebackup have been amended to mention the slight change > in grammar, affecting the case where we do not have a detail string. Very kind of you, thank you. Cheers, //Georgios > -- > Michael
Commits
-
Advance input pointer when LZ4 compressing data
- 1a05c1d25299 16.0 landed
-
Null-terminate the output buffer of LZ4Stream_gets
- 3c18d90f8907 16.0 landed
-
Rework code defining default compression for dir/custom formats in pg_dump
- bedc1f0564d1 16.0 landed
-
pg_dump: Use only LZ4 frame format for compression
- 0070b66fef21 16.0 landed
-
Minor comment improvements for compress_lz4
- d0160ca11e31 16.0 landed
-
Unify buffer sizes in pg_dump compression API
- f081a48f9a91 16.0 landed
-
Improve type handling in pg_dump's compress file API
- d3b57755e60c 16.0 landed
-
Improve wording in pg_dump compression docs
- 6095069b40d7 16.0 landed
-
Fix condition in pg_dump TAP test
- 34ce11437497 16.0 landed
-
Add LZ4 compression to pg_dump
- 0da243fed087 16.0 landed
-
Introduce a generic pg_dump compression API
- e9960732a961 16.0 landed
-
Prepare pg_dump internals for additional compression methods
- 03d02f54a640 16.0 landed
-
Fix behavior with pg_restore -l and compressed dumps
- 783d8abc3b63 16.0 landed
-
Add 250c8ee07ed to git-blame-ignore-revs
- ff23b592ad66 16.0 cited
-
Provide test coverage in pg_dump for default behaviors with compression
- a7885c9bb22d 16.0 landed
-
Switch pg_dump to use compression specifications
- 5e73a6048849 16.0 landed
-
Refactor code parsing compression option values (-Z/--compress)
- d18655cc037a 16.0 landed
-
meson: Add some missing env settings for tests of pg_dump and pg_verifybackup
- 00ae5d6f588e 16.0 landed
-
Extend TAP tests of pg_dump to test for compression with gzip
- 98fe74218d97 15.0 landed
-
Clean up some dead code in pg_dump with tar format and gzip compression
- 8ac4c25a05d1 15.0 landed
-
Add TAP test in pg_dump with --format=tar and --compress
- edcedcc2c7bb 15.0 landed
-
Replace BASE_BACKUP COMPRESSION_LEVEL option with COMPRESSION_DETAIL.
- ffd53659c46a 15.0 cited
-
Refactor the pg_dump zlib code from pg_backup_custom.c to a separate file,
- bf9aa490db24 9.1.0 cited