]> granicus.if.org Git - postgresql/commit
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:23:25 +0000 (11:23 +0200)
commit4bff35cca56ce665422e69c47a931793eb6e9d04
tree8f889a1959517f3ebb4bece9d24a69cf3dff364d
parent3c97a7ca46c0734446b5f5be8a4c469434b371d7
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.
contrib/pg_xlogdump/pg_xlogdump.c