| From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Set random seed for pgbench. |
| Date: | 2018-03-26 15:26:47 |
| Message-ID: | E1f0U1H-00005J-98@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(dot)q7iq3ykffqxcszkv(at)alap3(dot)anarazel(dot)de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/64f85894ad2730fb1449a8e81dd8026604e9a546
Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 42 +++++++++++++++++
src/bin/pgbench/pgbench.c | 69 +++++++++++++++++++++++++---
src/bin/pgbench/t/001_pgbench_with_server.pl | 69 +++++++++++++++++++++++++---
src/bin/pgbench/t/002_pgbench_no_server.pl | 2 +
4 files changed, 170 insertions(+), 12 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2018-03-26 15:33:33 | Re: pgsql: Allow FOR EACH ROW triggers on partitioned tables |
| Previous Message | Alvaro Herrera | 2018-03-26 15:10:18 | pgsql: Fix thinko in comment |