pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed9.0 beta 3 pgbench -- documentation issue
2+ messages / 2 participants
[nested] [flat]
* 9.0 beta 3 pgbench -- documentation issue
@ 2010-07-18 14:35 Josh Berkus <josh@agliodbs.com>
2010-07-19 16:59 ` Re: 9.0 beta 3 pgbench -- documentation issue Greg Smith <greg@2ndquadrant.com>
0 siblings, 1 reply; 2+ messages in thread
From: Josh Berkus @ 2010-07-18 14:35 UTC (permalink / raw)
To: pgsql-docs
Greg,
Your current documentation examples for customs scripts in pgbench
includes the variable :scale, i.e.:
\set nbranches :scale
\set ntellers 10 * :scale
\set naccounts 100000 * :scale
However, in the documentation the variable :scale is never set,
resulting in it defaulting to 1. The example script needs to start with:
\set scale 10
--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: 9.0 beta 3 pgbench -- documentation issue
2010-07-18 14:35 9.0 beta 3 pgbench -- documentation issue Josh Berkus <josh@agliodbs.com>
@ 2010-07-19 16:59 ` Greg Smith <greg@2ndquadrant.com>
0 siblings, 0 replies; 2+ messages in thread
From: Greg Smith @ 2010-07-19 16:59 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-docs
Josh Berkus wrote:
> However, in the documentation the variable :scale is never set,
> resulting in it defaulting to 1. The example script needs to start with:
>
> \set scale 10
>
Look at table F-15 "pgbench benchmarking options", specifically the
section for "-s scale_factor". That describes how the scale is set for
the internal tests, and that you need to set it manually using "-s
<scale>" for custom scripts run using "-f <script>". My guess is that
covers the situation you ran into here.
--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com www.2ndQuadrant.us
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2010-07-19 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-07-18 14:35 9.0 beta 3 pgbench -- documentation issue Josh Berkus <josh@agliodbs.com>
2010-07-19 16:59 ` Greg Smith <greg@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox