diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-08-16 16:56:47 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-08-16 16:58:58 +0200 |
commit | 1bb69245ab234634013c543927e6fa76009622fa (patch) | |
tree | 9e5ba9a6092ee1cd6c75dbe6df7c694ea8da75a4 /src/backend/commands/cluster.c | |
parent | 2877c67bc24510c30bca477c876f5de427c85588 (diff) | |
download | postgresql-1bb69245ab234634013c543927e6fa76009622fa.tar.gz postgresql-1bb69245ab234634013c543927e6fa76009622fa.zip |
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%.
Diffstat (limited to 'src/backend/commands/cluster.c')
0 files changed, 0 insertions, 0 deletions