Re: usleep feature for pgbench

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Jan Wieck <JanWieck(at)yahoo(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: usleep feature for pgbench
Date: 2007-07-07 15:40:17
Message-ID: 2384.1183822817@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-07-07 15:44:48 Re: Unable to get postgres running after long time no vacuum
Previous Message Tom Lane 2007-07-07 15:23:28 Re: Checkpoints and buffers that are hint-bit-dirty