Retry opening new segments in pg_xlogdump --folllow

Magnus Hagander <magnus@hagander.net>

Commit: d8b4c3490c8ada0e39727475328a67c2e510f2f2
Author: Magnus Hagander <magnus@hagander.net>
Date: 2016-09-30T09:22:32Z
Releases: 9.5.5
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.

Files

PathChange+/−
src/bin/pg_xlogdump/pg_xlogdump.c modified +25 −1