From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Assorted cleanup of tar-related code.
Date: Mon, 15 Jun 2020 20:48:46 +0000
Message-ID: <E1jkw2A-0004YX-9f@gemulon.postgresql.org> (raw)
Assorted cleanup of tar-related code.
Introduce TAR_BLOCK_SIZE and replace many instances of 512 with
the new constant. Introduce function tarPaddingBytesRequired
and use it to replace numerous repetitions of (x + 511) & ~511.
Add preprocessor guards against multiple inclusion to pgtar.h.
Reformat the prototype for tarCreateHeader so it doesn't extend
beyond 80 characters.
Discussion: http://postgr.es/m/CA+TgmobWbfReO9-XFk8urR1K4wTNwqoHx_v56t7=T8KaiEoKNw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2961c9711c17e5fe05fb1fbd72c3e47f3b601ee4
Modified Files
--------------
src/backend/replication/basebackup.c | 29 ++++++++++++++--------
src/bin/pg_basebackup/pg_basebackup.c | 46 +++++++++++++++++------------------
src/bin/pg_basebackup/walmethods.c | 25 +++++++++++--------
src/bin/pg_dump/pg_backup_tar.c | 30 ++++++++++++-----------
src/include/pgtar.h | 23 ++++++++++++++++--
5 files changed, 94 insertions(+), 59 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: Assorted cleanup of tar-related code.
In-Reply-To: <E1jkw2A-0004YX-9f@gemulon.postgresql.org>
References: <E1jkw2A-0004YX-9f@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox