Re: usleep feature for pgbench
От | Jan Wieck |
---|---|
Тема | Re: usleep feature for pgbench |
Дата | |
Msg-id | 46900ECB.8060304@Yahoo.com обсуждение исходный текст |
Ответ на | Re: usleep feature for pgbench (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
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 #
В списке pgsql-hackers по дате отправления: