]> granicus.if.org Git - postgresql/commit
Refactor the pg_dump zlib code from pg_backup_custom.c to a separate file,
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 2 Dec 2010 19:39:03 +0000 (21:39 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 2 Dec 2010 19:39:03 +0000 (21:39 +0200)
commitbf9aa490db24b2334b3595ee33653bf2fe39208c
tree64c31227ebf39565e8e51bf3ec4ae0ae3c028e2d
parent225f0aa3dfef55554cbe2e6da73df5e41b9eec18
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.
src/bin/pg_dump/Makefile
src/bin/pg_dump/compress_io.c [new file with mode: 0644]
src/bin/pg_dump/compress_io.h [new file with mode: 0644]
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_backup_custom.c