Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 54719B5DC36 for ; Mon, 29 Aug 2011 00:23:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 06490-04 for ; Mon, 29 Aug 2011 03:22:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id A6070B5DBD8 for ; Mon, 29 Aug 2011 00:22:57 -0300 (ADT) Received: from [192.168.1.7] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MBeAU-1R7Fpx2s1W-00AVM2; Mon, 29 Aug 2011 05:22:56 +0200 Message-ID: <4E5B060E.1070604@2ndQuadrant.com> Date: Sun, 28 Aug 2011 23:22:54 -0400 From: Greg Smith User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: pgbench -T isn't a hard cutoff. References: <005a01cc6467$410a87c0$c31f9740$@com> In-Reply-To: <005a01cc6467$410a87c0$c31f9740$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:jK/E8vgLap9GOfi7NrmhFVyNfU6mgXQ4EChCZmM1bgp IkHNDH/ZV6sjgIWsoRYo2ru6q2do3+kOQZ3YA7MB8FpUuyW05F vobVJVKSKsRvRvkVxHjSu2iFX1IoC6PzaeC42ysDzuC0Lyw+VT YWnmh3P+bQn8IlUxqJRxISpVa7kuOH07QkZtIygj0Io+ynljdF c79eNkTFVMzYpN1AXwNRK+GxRpMAQ6YNBT+EP8jwXA= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201108/163 X-Sequence-Number: 30975 On 08/26/2011 11:13 PM, mark wrote: > Using the -T flag in pgbench I noticed that -T is a just a effort rather > than a hard cut off. > ... > Expected behavior would be -T would mean a hard cut off. > If there's a hard cut-off, that means that partially completed transactions are not included in the total. That produces less correct results than the current scheme. With the current behavior, worrying about partial amounts being ignored isn't a problem. But there is the potential problem you report, which is mainly a risk when pgbench is combined with a badly setup environment. It's hard to justify making a change that will produce less accurate results in the vast majority of cases, just to improve behavior in a situation where useless results are coming out no matter what. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us