Retry opening new segments in pg_xlogdump --folllow
authorMagnus Hagander <magnus@hagander.net>
Fri, 30 Sep 2016 09:19:30 +0000 (11:19 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 30 Sep 2016 09:22:32 +0000 (11:22 +0200)
commitd8b4c3490c8ada0e39727475328a67c2e510f2f2
tree0d4434d0e44af92473d116bf4375e56247b14ed3
parent2937ffa5d5790e6bcefae0492388adb192db936b
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.
src/bin/pg_xlogdump/pg_xlogdump.c