Re: pgbench throttling latency limit - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: pgbench throttling latency limit
Date
Msg-id alpine.DEB.2.10.1408291252410.23808@sto
Whole thread Raw
In response to Re: pgbench throttling latency limit  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: pgbench throttling latency limit
List pgsql-hackers
Hello Heikki,

> This now begs the question:
>
> In --rate mode, shouldn't the reported transaction latency also be calculated 
> from the *scheduled* start time, not the time the transaction actually 
> started? Otherwise we're using two different definitions of "latency", one 
> for the purpose of the limit, and another for reporting.

It could. Find a small patch **on top of v5** which does that. I've tried 
to update the documentation accordingly as well.

Note that the information is already there as the average lag time is 
reported, ISTM that:
    avg latency2 ~ avg lag + avg latency1

so it is just a matter of choice, both are ok somehow. I would be fine 
with both.

-- 
Fabien.

pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: LIMIT for UPDATE and DELETE
Next
From: Marko Tiikkaja
Date:
Subject: Re: LIMIT for UPDATE and DELETE