pgsql: Fix race condition if a file is removed while pg_basebackup is r - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix race condition if a file is removed while pg_basebackup is r
Date
Msg-id E1Tm2my-0007VB-4N@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/14aa55df29ea69e453be4c46f8546d49365fc06b

Modified Files
--------------
src/backend/replication/basebackup.c |   39 ++++++++++++++++++++++++++-------
1 files changed, 30 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix race condition if a file is removed while pg_basebackup is r
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix sloppiness in the timeline switch over streaming replication