pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Set random seed for pgbench.
Date: Mon, 26 Mar 2018 15:26:47 +0000
Message-ID: <E1f0U1H-00005J-98@gemulon.postgresql.org> (raw)

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

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(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1f0U1H-00005J-98@gemulon.postgresql.org>
Permalink:  ../E1f0U1H-00005J-98@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f0U1H-00005J-98@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Set random seed for pgbench.
  In-Reply-To: <E1f0U1H-00005J-98@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox