pgsql: Adjust total size in pg_basebackup progress report when reality

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust total size in pg_basebackup progress report when reality
Date: 2011-08-16 15:00:10
Message-ID: E1QtL7i-0001LC-77@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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%.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0615782b23d3e4a9d9acece919bd77f919928953

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Cunha17 2011-08-16 15:54:12 snapshot - src: FIX: Support for PostGIS datatypes Geometry and
Previous Message David Fetter 2011-08-16 13:33:26 Re: pgsql: In pg_upgrade, avoid dumping orphaned temporary tables. This ma