Add LZ4 compression to pg_dump
authorTomas Vondra <[email protected]>
Thu, 23 Feb 2023 20:19:19 +0000 (21:19 +0100)
committerTomas Vondra <[email protected]>
Thu, 23 Feb 2023 20:19:26 +0000 (21:19 +0100)
commit0da243fed0875932f781aff08df782b56af58d02
tree6b9699a82ab82a823c7c9305d1a644b320de16b4
parente0b3074e894496b41b57fd1c96ede68803cf3df8
Add LZ4 compression to pg_dump

Expand pg_dump's compression streaming and file APIs to support the lz4
algorithm. The newly added compress_lz4.{c,h} files cover all the
functionality of the aforementioned APIs. Minor changes were necessary
in various pg_backup_* files, where code for the 'lz4' file suffix has
been added, as well as pg_dump's compression option parsing.

Author: Georgios Kokolatos
Reviewed-by: Michael Paquier, Rachel Heaton, Justin Pryzby, Shi Yu, Tomas Vondra
Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03TMm0fBEWveFF9wA1WizPuAgB7Ss%3D%40protonmail.com
12 files changed:
doc/src/sgml/ref/pg_dump.sgml
src/bin/pg_dump/Makefile
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/compress_lz4.c [new file with mode: 0644]
src/bin/pg_dump/compress_lz4.h [new file with mode: 0644]
src/bin/pg_dump/meson.build
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl
src/tools/pginclude/cpluspluscheck
src/tools/pgindent/typedefs.list