Add and use symbolic constants for tar header offsets and file types.
Robert Haas <rhaas@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_basebackup/bbstreamer_tar.c | modified | +10 −12 |
| src/bin/pg_basebackup/walmethods.c | modified | +4 −3 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +8 −8 |
| src/include/pgtar.h | modified | +39 −0 |
| src/port/tar.c | modified | +19 −19 |
Discussion
- constants for tar header offsets 10 messages · 2023-04-18 → 2023-08-01