9.0 beta 3 pgbench -- documentation issue

Поиск
Список
Период
Сортировка
Искать

9.0 beta 3 pgbench -- documentation issue

От:
Josh Berkus <josh@agliodbs.com>
Дата:
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

Re: 9.0 beta 3 pgbench -- documentation issue

От:
Greg Smith <greg@2ndquadrant.com>
Дата:
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 
" for custom scripts run using "-f 
FAQ