Re: usleep feature for pgbench - Mailing list pgsql-hackers

From Jan Wieck
Subject Re: usleep feature for pgbench
Date
Msg-id 468E7AC3.3040501@Yahoo.com
Whole thread Raw
In response to Re: usleep feature for pgbench  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: usleep feature for pgbench  (Heikki Linnakangas <heikki@enterprisedb.com>)
Re: usleep feature for pgbench  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On 7/6/2007 10:44 AM, Peter Eisentraut wrote:
> Am Donnerstag, 5. Juli 2007 21:12 schrieb Jan Wieck:
>> To test some changes in Slony I needed a
>>
>>      \usleep [microseconds|:variable]
>>
>> in pgbench's scripting language to be able to have hundreds of
>> concurrent running transactions without totally swamping the system. I
>> was wondering if anyone would object to permanently adding this to the
>> pgbench code?
> 
> Or maybe a \sleep command that takes units, if it's not too much work.
> 

You mean as a second, optional argument? Good idea.
  us = microseconds  ms = milliseconds  s  = seconds (default)
  \sleep {value|:variable} [us|ms|s]

Is that okay with everyone?


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_autovacuum -> pg_class.reloptions?
Next
From: Heikki Linnakangas
Date:
Subject: Re: usleep feature for pgbench