Re: usleep feature for pgbench

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: usleep feature for pgbench
Date: 2007-07-05 19:34:06
Message-ID: 20905.1183664046@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:
> 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?

How's it implemented? Does the whole pgbench app freeze up for the
duration of the sleep, or does it just delay that one client script?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2007-07-05 19:41:33 Re: [PATCH] A crash and subsequent recovery of themaster can cause the slave to get out-of-sync
Previous Message Tom Lane 2007-07-05 19:15:34 Re: unclean SPI_scroll_cursor_move documentation, is SPI_tuptable valid?