pgsql: Fix progress logging when scale factor is large.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix progress logging when scale factor is large.
Date: 2013-12-12 10:13:41
Message-ID: E1Vr3H3-0005Q4-9i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix progress logging when scale factor is large.

Integer overflow showed minus percent and minus remaining time something like this.
239300000 of 3800000000 tuples (-48%) done (elapsed 226.86 s, remaining -696.10 s).

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/27902bc9164d227cbdf1242de218edeaf8cd9f7f

Modified Files
--------------
contrib/pgbench/pgbench.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2013-12-12 10:56:36 pgsql: Allow time delayed standbys and recovery
Previous Message Heikki Linnakangas 2013-12-12 10:02:57 pgsql: Display old and new values in pg_resetxlog -n output.