Set random seed for pgbench.
Teodor Sigaev <teodor@sigaev.ru>
Set random seed for pgbench. Setting random could increase reproducibility of test in some cases. Patch suggests three providers for seed: time (default), strong random generator (if available) and unsigned constant. Seed could be set from command line or enviroment variable. Author: Fabien Coelho Reviewed by: Chapman Flack Discussion: https://www.postgresql.org/message-id/flat/20160407082711.q7iq3ykffqxcszkv@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pgbench.sgml | modified | +42 −0 |
| src/bin/pgbench/pgbench.c | modified | +63 −6 |
| src/bin/pgbench/t/001_pgbench_with_server.pl | modified | +63 −6 |
| src/bin/pgbench/t/002_pgbench_no_server.pl | modified | +2 −0 |
Documentation touched
Discussion
- pgbench randomness initialization 34 messages · 2016-04-07 → 2018-03-26