Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W44Zz-0001Zj-VF for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jan 2014 08:15:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W44Zz-0001ix-F7 for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jan 2014 08:15:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W44Zy-0001ir-Se for pgsql-bugs@postgresql.org; Fri, 17 Jan 2014 08:15:02 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W44Zw-0008PK-9j for pgsql-bugs@postgresql.org; Fri, 17 Jan 2014 08:15:02 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id E6D9828465 for ; Fri, 17 Jan 2014 00:14:58 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id E3BDB40414 for ; Fri, 17 Jan 2014 00:14:58 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id E9503C0063; Fri, 17 Jan 2014 00:15:34 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Fri, 17 Jan 2014 00:15:32 -0800 (PST) Message-ID: <52D8E67D.9050603@vmware.com> Date: Fri, 17 Jan 2014 10:14:53 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Kingter Wang CC: pgsql-bugs@postgresql.org, Michael Paquier , Jignesh Shah Subject: Re: pgbench show progress report extremely frequently if "--progress" >= 2148 caused by integer overflow References: <1144780387.13149347.1389941518395.JavaMail.root@vmware.com> In-Reply-To: <1144780387.13149347.1389941518395.JavaMail.root@vmware.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.2 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 01/17/2014 08:51 AM, Kingter Wang wrote: > Fix Integer overflow which happened when covert progress from seconds to micro-seconds by > (progress * 1000000) if progress >= 2148. > Attached the patch. Thanks, committed. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs