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

From Tom Lane
Subject Re: usleep feature for pgbench
Date
Msg-id 2384.1183822817@sss.pgh.pa.us
Whole thread Raw
In response to Re: usleep feature for pgbench  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: usleep feature for pgbench  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-hackers
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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Checkpoints and buffers that are hint-bit-dirty
Next
From: Tom Lane
Date:
Subject: Re: Tidied up patch status page