Avoid including tablespaces inside PGDATA twice in base backups

Magnus Hagander <magnus@hagander.net>

Commit: b168c5ef2730d0ecaa7462f0b90345b0a3798c16
Author: Magnus Hagander <magnus@hagander.net>
Date: 2014-01-07T16:11:32Z
Releases: 9.4.0
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

Files

PathChange+/−
src/backend/replication/basebackup.c modified +52 −7