Unify some tar functionality across different parts
Magnus Hagander <magnus@hagander.net>
Unify some tar functionality across different parts Move some of the tar functionality that existed mostly duplicated in both pg_dump and the walsender basebackup functionality into port/tar.c instead, so it can be used from both. It will also be used by pg_basebackup in the future, which would've caused a third copy of it around. Zoltan Boszormenyi and Magnus Hagander
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/basebackup.c | modified | +3 −125 |
| src/bin/pg_dump/pg_backup_tar.c | modified | +3 −102 |
| src/include/port.h | modified | +4 −0 |
| src/port/Makefile | modified | +1 −1 |
| src/port/tar.c | added | +143 −0 |