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:58:58 +0000 (16:58 +0200)
commit1bb69245ab234634013c543927e6fa76009622fa
tree9e5ba9a6092ee1cd6c75dbe6df7c694ea8da75a4
parent2877c67bc24510c30bca477c876f5de427c85588
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