Re: pgbench small bug fix - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pgbench small bug fix
Date
Msg-id CA+Tgmob5EFQVmhGBpMZoapjTvMeRb6u9YGh-TVw6ZGbGD0BgUQ@mail.gmail.com
Whole thread Raw
In response to pgbench small bug fix  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: pgbench small bug fix  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On Wed, Jan 27, 2016 at 2:31 PM, Fabien COELHO <coelho@cri.ensmp.fr> wrote:
>  - when a duration (-T) is specified, ensure that pgbench ends at that
>    time (i.e. do not wait for a transaction beyond the end of the run).

Every other place where doCustom() returns false is implemented as
return clientDone(...).  I think this should probably do the same.

I also think that we should probably store the end time someplace
instead of recomputing it in multiple places (this patch adds two such
places).

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: empty array case in plperl_ref_from_pg_array not handled correctly
Next
From: Robert Haas
Date:
Subject: Re: extend pgbench expressions with functions