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-0001LA-6D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1bb69245ab234634013c543927e6fa76009622fa

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

Responses

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Urbański 2011-08-16 15:06:37 Re: plpython crash
Previous Message Magnus Hagander 2011-08-16 15:00:06 Re: some missing internationalization in pg_basebackup