pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: usleep feature for pgbench
Date: Fri, 06 Jul 2007 13:24:19 -0400
Message-ID: <468E7AC3.3040501@Yahoo.com> (raw)
In-Reply-To: <200707061644.57878.peter_e@gmx.net>
References: <468D42B3.4010701@Yahoo.com>
	<200707061644.57878.peter_e@gmx.net>

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 #



view thread (16+ messages)  latest in thread

Message-ID: <468E7AC3.3040501@Yahoo.com>
Permalink:  ../468E7AC3.3040501@Yahoo.com/
Also on:    postgresql.org/message-id/468E7AC3.3040501@Yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: JanWieck@Yahoo.com, peter_e@gmx.net
  Subject: Re: usleep feature for pgbench
  In-Reply-To: <468E7AC3.3040501@Yahoo.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