[COMMITTERS] pgsql: Fix RecursiveCopy.pm to cope with disappearing files. - Mailing list pgsql-committers

From Tom Lane
Subject [COMMITTERS] pgsql: Fix RecursiveCopy.pm to cope with disappearing files.
Date
Msg-id E1draXj-0007Zk-Tb@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix RecursiveCopy.pm to cope with disappearing files.

When copying from an active database tree, it's possible for files to be
deleted after we see them in a readdir() scan but before we can open them.
(Once we've got a file open, we don't expect any further errors from it
getting unlinked, though.)  Tweak RecursiveCopy so it can cope with this
case, so as to avoid irreproducible test failures.

Back-patch to 9.6 where this code was added.  In v10 and HEAD, also
remove unused "use RecursiveCopy" in one recovery test script.

Michael Paquier and Tom Lane

Discussion: https://postgr.es/m/24621.1504924323@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/64e2b29bdea0861d6b7509653a676ccc9261bfbb

Modified Files
--------------
src/test/perl/RecursiveCopy.pm | 64 +++++++++++++++++++++++++++++-------------
1 file changed, 45 insertions(+), 19 deletions(-)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Changed order of statements and added an additiona MSVC safeguar
Next
From: Michael Meskes
Date:
Subject: [COMMITTERS] pgsql: Fixed ECPG to correctly handle out-of-scope cursordeclarations