Retry opening new segments in pg_xlogdump --folllow

Magnus Hagander <magnus@hagander.net>

Commit: 4bff35cca56ce665422e69c47a931793eb6e9d04
Author: Magnus Hagander <magnus@hagander.net>
Date: 2016-09-30T09:23:25Z
Releases: 9.3.15
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+/−
contrib/pg_xlogdump/pg_xlogdump.c modified +25 −1