pgsql: pg_dump: Simplify internal archive version handling

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_dump: Simplify internal archive version handling
Date: 2016-10-25 21:03:15
Message-ID: E1bz8sN-0006O5-5L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_dump: Simplify internal archive version handling

The ArchiveHandle structure contained the archive format version number
twice, once as a single field and once split into components. Simplify
that by just keeping the single field and adding some macros to extract
the components. Introduce some macros for composing version numbers, to
eliminate the repeated use of magic formulas. Drop the unused trailing
zero byte from the run-time composite version representation.

reviewed by Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8c035e55c4807dc5844f563dcbbc44ffe2fdd4d6

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 52 ++++++++++++++++-----------------
src/bin/pg_dump/pg_backup_archiver.h | 56 ++++++++++++++++++------------------
2 files changed, 53 insertions(+), 55 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2016-10-25 21:22:48 Re: pgsql: Use OpenSSL EVP API for symmetric encryption in pgcrypto.
Previous Message Magnus Hagander 2016-10-25 17:00:58 pgsql: Free walmethods before exiting