]> 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:20 +0000 (11:22 +0200)
commit41d58e97afe4c24398a5469f79468a50895b3ab0
treedb1b691630bf9dee817abca9c55839cc95634d6d
parent7341c2830cf3d06a96d97f0e6a2e85bf808faae4
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