Skip site navigation (1) Skip section navigation (2)

pgsql: Enumerate available tablespaces after starting the backup

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Enumerate available tablespaces after starting the backup
Date: 2011-01-15 18:33:42
Message-ID: E1PeAwY-0007qr-La@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Enumerate available tablespaces after starting the backup

This closes a race condition where if a tablespace was created
after the enumeration happened but before the do_pg_start_backup()
was called, the backup would be incomplete. Now that it's done
while we are in backup mode, WAL replay will recreate it during
restore.

Noted by Heikki.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=3866ff6149a3b072561e65b3f71f63498e77b6b2

Modified Files
--------------
src/backend/replication/basebackup.c |   77 +++++++++++++++++----------------
1 files changed, 40 insertions(+), 37 deletions(-)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2011-01-15 19:42:51
Subject: pgsql: Restructure test_fync to use modular C so there is lessduplicat
Previous:From: Bruce MomjianDate: 2011-01-15 17:24:37
Subject: pgsql: Improve output display of test_fsync.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group