Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1538C9FB6C8 for ; Fri, 6 Jul 2007 14:24:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 21632-06 for ; Fri, 6 Jul 2007 14:24:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp106.plus.mail.re1.yahoo.com (smtp106.plus.mail.re1.yahoo.com [69.147.102.69]) by postgresql.org (Postfix) with SMTP id 953969FB614 for ; Fri, 6 Jul 2007 14:24:27 -0300 (ADT) Received: (qmail 74360 invoked from network); 6 Jul 2007 17:24:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=Yahoo.com; h=Received:X-YMail-OSG:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=3eg3MsEAkpsPwsjm/faHo0Ir0YRG54v1IULgbIPg48R4MdZTqxqcaJyDyBTPBgvQ3vw1olnwtDbV/1sCXTdghlZ6+EoDHCyaJwprgiKC/VjtfjM2uaYCFDm4ZytRd9g5oCx2mNoJnjvHtc/vzFVgtrSfXwz2V/Ybhia0ZHA/rPo= ; Received: from unknown (HELO jupiter.jannicash.info) (janwieck@68.34.254.79 with login) by smtp106.plus.mail.re1.yahoo.com with SMTP; 6 Jul 2007 17:24:26 -0000 X-YMail-OSG: d7flWXgVM1nXF3RuDsT3.MlcKuIB0nSUdQkQYne0t54L_qzPM0VYyUIK3IHeYIWO5u.P1G5njQ-- Received: from [172.21.8.128] (mars.jannicash.info [192.168.192.101]) (authenticated bits=0) by jupiter.jannicash.info (8.12.10/8.12.9) with ESMTP id l66HOOHY007441; Fri, 6 Jul 2007 13:24:25 -0400 (EDT) (envelope-from JanWieck@Yahoo.com) Message-ID: <468E7AC3.3040501@Yahoo.com> Date: Fri, 06 Jul 2007 13:24:19 -0400 From: Jan Wieck User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Peter Eisentraut CC: pgsql-hackers@postgresql.org Subject: Re: usleep feature for pgbench References: <468D42B3.4010701@Yahoo.com> <200707061644.57878.peter_e@gmx.net> In-Reply-To: <200707061644.57878.peter_e@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.756 tagged_above=0 required=5 tests=AWL=-1.549, BAYES_40=-0.185, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447, FORGED_RCVD_HELO=0.135 X-Spam-Level: * X-Archive-Number: 200707/169 X-Sequence-Number: 105084 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 #