Add and use symbolic constants for tar header offsets and file types.
authorRobert Haas <rhaas@postgresql.org>
Tue, 1 Aug 2023 17:50:42 +0000 (13:50 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 1 Aug 2023 17:50:42 +0000 (13:50 -0400)
commit6050b6a92d1e6b5a234e96382ea711683e67d280
treed65fe86fe5ff5e09b3e3d025f266014e458fa7c7
parentdeae1657ee6dd6f7b3effab3d44429d5434f5bbf
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
src/bin/pg_basebackup/bbstreamer_tar.c
src/bin/pg_basebackup/walmethods.c
src/bin/pg_dump/pg_backup_tar.c
src/include/pgtar.h
src/port/tar.c