pgsql: Avoid including tablespaces inside PGDATA twice in base backups

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid including tablespaces inside PGDATA twice in base backups
Date: 2014-01-07 16:28:55
Message-ID: E1W0ZWR-0005Ie-3u@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/773e4d5e4dc48dc2c14f31f5d71d9dbf491fd6f5

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

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2014-01-07 17:05:16 pgsql: Move permissions check from do_pg_start_backup to pg_start_backu
Previous Message Magnus Hagander 2014-01-07 16:28:54 pgsql: Avoid including tablespaces inside PGDATA twice in base backups