Thread: pgsql: Avoid including tablespaces inside PGDATA twice in base backups

pgsql: Avoid including tablespaces inside PGDATA twice in base backups

From
Magnus Hagander
Date:
Avoid including tablespaces inside PGDATA twice in base backups

If a tablespace was crated inside PGDATA it was backed up both as part
of the PGDATA backup and as the backup of the tablespace. Avoid this
by skipping any directory inside PGDATA that contains one of the active
tablespaces.

Dimitri Fontaine and Magnus Hagander

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b168c5ef2730d0ecaa7462f0b90345b0a3798c16

Modified Files
--------------
src/backend/replication/basebackup.c |   59 ++++++++++++++++++++++++++++++----
1 file changed, 52 insertions(+), 7 deletions(-)