pgsql: Retry opening new segments in pg_xlogdump --folllow

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Retry opening new segments in pg_xlogdump --folllow
Date: 2016-09-30 09:28:56
Message-ID: E1bpu7k-00029f-Qt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Retry opening new segments in pg_xlogdump --folllow

There is a small window between when the server closes out the existing
segment and the new one is created. Put a loop around the open call in
this case to make sure we wait for the new file to actually appear.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d8b4c3490c8ada0e39727475328a67c2e510f2f2

Modified Files
--------------
src/bin/pg_xlogdump/pg_xlogdump.c | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-09-30 18:11:15 pgsql: Remove unnecessary prototypes
Previous Message Stephen Frost 2016-09-30 02:13:43 pgsql: Remove superuser checks in pgstattuple