]> granicus.if.org Git - postgresql/commit
Adjust total size in pg_basebackup progress report when reality changes
authorMagnus Hagander <magnus@hagander.net>
Tue, 16 Aug 2011 14:56:47 +0000 (16:56 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 16 Aug 2011 14:59:22 +0000 (16:59 +0200)
commit0615782b23d3e4a9d9acece919bd77f919928953
tree849c4fbca15afafd05b462b5516170b9717e3c62
parentbe78374f160d4a3bb2357d38e3196f8dcd4ffcc1
Adjust total size in pg_basebackup progress report when reality changes

When streaming including WAL, the size estimate will always be incorrect,
since we don't know how much WAL is included. To make sure the output doesn't
look completely unreasonable, this patch increases the total size whenever we
go past the estimate, to make sure we never go above 100%.
src/bin/pg_basebackup/pg_basebackup.c