Thread: BUG #13452: postgresql 9.5dev pgbench document problem.

BUG #13452: postgresql 9.5dev pgbench document problem.

From
digoal@126.com
Date:
The following bug has been logged on the website:

Bug reference:      13452
Logged by:          digoal
Email address:      digoal@126.com
PostgreSQL version: Unsupported/Unknown
Operating system:   CentOS 6.x x64
Description:

An problem in 9.5dev Document.
http://www.postgresql.org/docs/devel/static/pgbench.html

\set aid (1021 * :aid) % (100000 * :scale) + 1

-- aid undefined~

Regards,
Digoal

Re: BUG #13452: postgresql 9.5dev pgbench document problem.

From
Fabien COELHO
Date:
> An problem in 9.5dev Document.
> http://www.postgresql.org/docs/devel/static/pgbench.html
>
> \set aid (1021 * :aid) % (100000 * :scale) + 1
>
> -- aid undefined~

This example is not intended to be self-contained, this line assumes that
aid is already set, and would be okay in such case.

I guess the documentation examples could be made less surprising.

--
Fabien.