]> granicus.if.org Git - postgresql/commit
Avoid including tablespaces inside PGDATA twice in base backups
authorMagnus Hagander <magnus@hagander.net>
Tue, 7 Jan 2014 16:04:40 +0000 (17:04 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 7 Jan 2014 16:11:51 +0000 (17:11 +0100)
commit0463b9419b4887ddbd2aaaac0c55ee636b4eadd4
treeefeb60a5c390f90bda826b264c91151e97e3a556
parent8660f4b759f39f7f98776d6f39001246ad3daf6f
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
src/backend/replication/basebackup.c