Unify some tar functionality across different parts

Magnus Hagander <magnus@hagander.net>

Commit: f5d4bdd3a5c1b7987a257b2a64e977501338af0d
Author: Magnus Hagander <magnus@hagander.net>
Date: 2013-01-01T17:15:57Z
Releases: 9.3.0
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

PathChange+/−
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