Skip to content

Commit b5dfb52

Browse files
tvondrapull[bot]
authored andcommitted
Introduce a generic pg_dump compression API
Switch pg_dump to use the Compression API, implemented by bf9aa49. The CompressFileHandle replaces the cfp* family of functions with a struct of callbacks for accessing (compressed) files. This allows adding new compression methods simply by introducing a new struct instance with appropriate implementation of the callbacks. Archives compressed using custom compression methods store an identifier of the compression algorithm in their header instead of the compression level. The header version is bumped. Author: Georgios Kokolatos Reviewed-by: Michael Paquier, Rachel Heaton, Justin Pryzby, Tomas Vondra Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03TMm0fBEWveFF9wA1WizPuAgB7Ss%3D%40protonmail.com
1 parent 8a28578 commit b5dfb52

16 files changed

+1050
-751
lines changed

src/bin/pg_dump/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport)
2424

2525
OBJS = \
2626
$(WIN32RES) \
27+
compress_gzip.o \
2728
compress_io.o \
29+
compress_none.o \
2830
dumputils.o \
2931
parallel.o \
3032
pg_backup_archiver.o \

0 commit comments

Comments
 (0)