pgsql: pgbench: Remove \setrandom. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: pgbench: Remove \setrandom.
Date
Msg-id E1akwFL-0004JO-09@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pgbench: Remove \setrandom.

You can now do the same thing via \set using the appropriate function,
either random(), random_gaussian(), or random_exponential(), depending
on the desired distribution.  This is not backward-compatible, but per
discussion, it's worth it to avoid having the old syntax hang around
forever.

Fabien Coelho, reviewed by Michael Paquier, and adjusted by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ad9566470b1ba63167d1dc7ae2cb52d88a448f76

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml |  54 -------------
src/bin/pgbench/pgbench.c     | 181 +-----------------------------------------
2 files changed, 2 insertions(+), 233 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Avoid possibly-unsafe use of Windows' FormatMessage() function.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: pgbench: allow a script weight of zero