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:00 +0000 (11:22 +0200)
commit3d39244e6e7374febff59eba338f7a82f696a618
treeae199f3f06518997fec61ccd31fc296cf73b67b9
parentfd321a1dfd64d30bf1652ea6b39b654304f68ae4
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