Adjust total size in pg_basebackup progress report when reality changes

Magnus Hagander <magnus@hagander.net>

Commit: 0615782b23d3e4a9d9acece919bd77f919928953
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-08-16T14:59:22Z
Releases: 9.1.0
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%.

Files

PathChange+/−
src/bin/pg_basebackup/pg_basebackup.c modified +9 −0