pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: pgsql-bugs@postgresql.org
Subject: Re: pgbench -T isn't a hard cutoff.
Date: Sun, 28 Aug 2011 23:22:54 -0400
Message-ID: <4E5B060E.1070604@2ndQuadrant.com> (raw)
In-Reply-To: <005a01cc6467$410a87c0$c31f9740$@com>
References: <005a01cc6467$410a87c0$c31f9740$@com>

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




view thread (4+ messages)  latest in thread

Message-ID: <4E5B060E.1070604@2ndQuadrant.com>
Permalink:  ../4E5B060E.1070604@2ndQuadrant.com/
Also on:    postgresql.org/message-id/4E5B060E.1070604@2ndQuadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: greg@2ndQuadrant.com
  Subject: Re: pgbench -T isn't a hard cutoff.
  In-Reply-To: <4E5B060E.1070604@2ndQuadrant.com>
  References: <005a01cc6467$410a87c0$c31f9740$@com> <4E5B060E.1070604@2ndQuadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox