summaryrefslogtreecommitdiff
path: root/contrib/pgbench/README.pgbench
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2007-07-06 13:36:55 +0000
committerJan Wieck <JanWieck@Yahoo.com>2007-07-06 13:36:55 +0000
commit0f17da9b3e13674188a951473d3951db4b162285 (patch)
tree633732f5009b1f43d6c40f4492946bcdb1ba9345 /contrib/pgbench/README.pgbench
parent7af3a6fc6f9e2486df37eeac0d61addba09a3551 (diff)
downloadpostgresql-0f17da9b3e13674188a951473d3951db4b162285.tar.gz
Added a new scripting meta command
\usleep [milliseconds|:variable] which can be used in -f scripts to insert a thinking time between other commands. Jan
Diffstat (limited to 'contrib/pgbench/README.pgbench')
-rw-r--r--contrib/pgbench/README.pgbench12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/pgbench/README.pgbench b/contrib/pgbench/README.pgbench
index 599dc3b6c5..2afd4db25e 100644
--- a/contrib/pgbench/README.pgbench
+++ b/contrib/pgbench/README.pgbench
@@ -1,4 +1,4 @@
-$PostgreSQL: pgsql/contrib/pgbench/README.pgbench,v 1.18 2007/04/08 01:15:07 ishii Exp $
+$PostgreSQL: pgsql/contrib/pgbench/README.pgbench,v 1.19 2007/07/06 13:36:55 wieck Exp $
pgbench README
@@ -231,6 +231,16 @@ o -f option
Variables can also be defined by using -D option.
+ \usleep usec
+
+ causes script execution to sleep for the specified duration in
+ microseconds.
+
+ example:
+
+ \setrandom usec 1000000 3000000
+ \usleep :usec
+
Example, TPC-B like benchmark can be defined as follows(scaling
factor = 1):