pgsql: Retry opening new segments in pg_xlogdump --folllow

Lists: pgsql-committers
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: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3d39244e6e7374febff59eba338f7a82f696a618

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