Fix race condition if a file is removed while pg_basebackup is running.
If a relation file was removed when the server-side counterpart of
pg_basebackup was just about to open it to send it to the client, you'd
get a "could not open file" error. Fix that.
Backpatch to 9.1, this goes back to when pg_basebackup was introduced.
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/52d469b4ace07f2d1af9426c9c0bbfc1c86a4c91
Modified Files
--------------
src/backend/replication/basebackup.c | 41 +++++++++++++++++++++++++--------
1 files changed, 31 insertions(+), 10 deletions(-)