]> granicus.if.org Git - postgresql/commit
Enumerate available tablespaces after starting the backup
authorMagnus Hagander <magnus@hagander.net>
Sat, 15 Jan 2011 18:18:14 +0000 (19:18 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 15 Jan 2011 18:31:16 +0000 (19:31 +0100)
commit3866ff6149a3b072561e65b3f71f63498e77b6b2
treed08a28dbfe57af234e5d5b67c65c544de03a92da
parent3ab80cfe031b616638eb6956010dcc9cb6426631
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.
src/backend/replication/basebackup.c