From: Jan Wieck <JanWieck@Yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: usleep feature for pgbench
Date: Sat, 07 Jul 2007 18:08:11 -0400
Message-ID: <46900ECB.8060304@Yahoo.com> (raw)
In-Reply-To: <2384.1183822817@sss.pgh.pa.us>
References: <468D42B3.4010701@Yahoo.com>
<200707061644.57878.peter_e@gmx.net>
<468E7AC3.3040501@Yahoo.com>
<200707071036.41585.peter_e@gmx.net>
<2384.1183822817@sss.pgh.pa.us>
On 7/7/2007 11:40 AM, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
>> Jan Wieck wrote:
>>> You mean as a second, optional argument? Good idea.
>
>> I think it should only be one argument, with the units being part of the
>> variable value, if any.
>
> No, because that makes it hard to do things like "sleep for a small
> random number of microseconds". If pgbench had string concatenation
> ability in its metalanguage then what you suggest would be sensible,
> but let us not go there.
That is exactly the reason why I made it an optional argument. The usage
example in the README file shows how to actually do a random sleep
between 1000 and 2500 ms.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck@Yahoo.com #
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, tgl@sss.pgh.pa.us, peter_e@gmx.net
Subject: Re: usleep feature for pgbench
In-Reply-To: <46900ECB.8060304@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