]> 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:22:49 +0000 (11:22 +0200)
commitda3f71a080fb7a615f5074eee44e524b045740f3
treea2c9bb1ac2a842d50d10537d7179ed3af1d99594
parenta4daf8319923505b60c02b23bf3cfd1bd0b89d40
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