Re: Re: [HACKERS] pgbench randomness initialization

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Chapman Flack <chap@anastigmatix.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>, Andres Freund <andres@anarazel.de>, PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2018-01-18T22:29:59Z
Lists: pgsql-hackers

Attachments

> Here is a rebase, plus some more changes:
>
> I have improved the error message to tell from where the value was provided.
>
> I have removed the test to the exact values produced from the expression test 
> run.
>
> I have added a test which run from the same seed value several times
> and checks that the output values are the same.

This version adds a :random_seed script variable, for information.

-- 
Fabien.

Commits

  1. Set random seed for pgbench.

  2. Fix pgbench TAP test to work in VPATH builds.