Skip site navigation (1) Skip section navigation (2)

pgsql: Refactor the pg_dump zlib code from pg_backup_custom.c to asepa

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor the pg_dump zlib code from pg_backup_custom.c to asepa
Date: 2010-12-02 19:49:07
Message-ID: E1POF9P-0001fD-OW@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=bf9aa490db24b2334b3595ee33653bf2fe39208c

Modified Files
--------------
src/bin/pg_dump/Makefile             |    2 +-
src/bin/pg_dump/compress_io.c        |  403 ++++++++++++++++++++++++++++++++++
src/bin/pg_dump/compress_io.h        |   68 ++++++
src/bin/pg_dump/pg_backup_archiver.h |    7 +-
src/bin/pg_dump/pg_backup_custom.c   |  365 ++++++------------------------
5 files changed, 552 insertions(+), 293 deletions(-)

pgsql-committers by date

Next:From: Alvaro HerreraDate: 2010-12-02 21:01:13
Subject: pgsql: Move private struct declaration to compress_io.c
Previous:From: Tom LaneDate: 2010-12-01 05:54:31
Subject: pgsql: Prevent inlining a SQL function with multiple OUT parameters.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group