Re: [COMMITTERS] pgsql: Adjust total size in pg_basebackup progress report when reality

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Adjust total size in pg_basebackup progress report when reality
Date: 2011-08-17 09:02:17
Message-ID: CABUevEzcuruyaK7x8MLS-NT5Qubf_u07+ifU44p5tO2RYhYADw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Wed, Aug 17, 2011 at 04:44, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> On Wed, Aug 17, 2011 at 12:00 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>> 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%.
>
> http://developer.postgresql.org/pgdocs/postgres/app-pgbasebackup.html
> ----------------
> Enables progress reporting. Turning this on will deliver an approximate progress
> report during the backup. Since the database may change during the backup,
> this is only an approximation and may not end at exactly 100%. In particular,
> when WAL log is included in the backup, the total amount of data cannot be
> estimated in advance, and in this case the progress report will only count
> towards the total amount of data without WAL.
> ----------------
>
> ISTM that the last sentence needs to be changed slightly because this commit
> changed the total amount so that it contains the amount of WAL.

Indeed it does. Thanks, fixed!

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2011-08-17 09:02:36 pgsql: Adjust wording now that estimated size can increase
Previous Message Heikki Linnakangas 2011-08-17 08:46:45 pgsql: If backup-end record is not seen, and we reach end of recovery f

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2011-08-17 09:26:17 Re: Enforcing that all WAL has been replayed after restoring from backup
Previous Message Jun Ishiduka 2011-08-17 08:59:37 Re: Online base backup from the hot-standby