Re: [HACKERS] pgbench randomness initialization
Вложения
В списке pgsql-hackers по дате отправления:
| От | Fabien COELHO |
|---|---|
| Тема | Re: [HACKERS] pgbench randomness initialization |
| Дата | |
| Msg-id | alpine.DEB.2.20.1801021022420.20034@lancre обсуждение исходный текст |
| Ответ на | Re: pgbench randomness initialization (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: [HACKERS] pgbench randomness initialization
|
| Список | pgsql-hackers |
Hello Alvaro, I revive this patch because controlling the seed is useful for tap testing pgbench. > The output should include the random seed used, whether it was passed > with --random-seed, environment variable or randomly determined. That > way, the user that later wants to verify why a particular run caused > some particular misbehavior knows what seed to use to reproduce that > run. Yep. Here is a new version which output use used seed when a seed is explicitely set with an option or from the environment. However, the default (current) behavior remains silent, so no visible changes unless tinkering with it. The patch also allows to use a "strong" random for seeding the PRNG, thanks to pg_strong_random(). The tests assume that stdlib random/srandom behavior is standard thus deterministic between platform. -- Fabien.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера