pgsql: Add and use symbolic constants for tar header offsets and file t

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add and use symbolic constants for tar header offsets and file t
Date: 2023-08-01 17:56:46
Message-ID: E1qQtbw-000AUf-P6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add and use symbolic constants for tar header offsets and file types.

Because symbolic constants in a header file are better than magic
constants embedded in the code.

Patch by me, reviewed by Tom Lane, Dagfinn Ilmari Mannsåker, and
Tristan Partin.

Discussion: http://postgr.es/m/CA+TgmoZNbLwhmCrNtkJAvi8FLkwFdMeVU3myV2HQQpA5bvbRZg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6050b6a92d1e6b5a234e96382ea711683e67d280

Modified Files
--------------
src/bin/pg_basebackup/bbstreamer_tar.c | 22 +++++++++----------
src/bin/pg_basebackup/walmethods.c | 7 +++---
src/bin/pg_dump/pg_backup_tar.c | 16 +++++++-------
src/include/pgtar.h | 39 ++++++++++++++++++++++++++++++++++
src/port/tar.c | 38 ++++++++++++++++-----------------
5 files changed, 80 insertions(+), 42 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David G. Johnston 2023-08-01 18:16:19 Re: pgsql: Fix search_path to a safe value during maintenance operations.
Previous Message Robert Haas 2023-08-01 17:41:42 Re: pgsql: Fix search_path to a safe value during maintenance operations.