Refactor the pg_dump zlib code from pg_backup_custom.c to a separate file,
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Refactor the pg_dump zlib code from pg_backup_custom.c to a separate file, to make it easier to reuse that code. There is no user-visible changes. This is in preparation for the patch to add a new archive format, a directory, to perform a custom-like dump but with each table being dumped to a separate file (that in turn is a prerequisite for parallel pg_dump). This also makes it easier to add new compression methods in the future, and makes the pg_backup_custom.c code easier to read, when the compression-related code is factored out. Joachim Wieland, with heavy editorialization by me.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/compress_io.c | added | +403 −0 |
| src/bin/pg_dump/compress_io.h | added | +68 −0 |
| src/bin/pg_dump/Makefile | modified | +1 −1 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +6 −1 |
| src/bin/pg_dump/pg_backup_custom.c | modified | +74 −291 |