Add approximated Zipfian-distributed random generator to pgbench

Enterprise / PostgreSQL - Teodor Sigaev [sigaev.ru] - 14 December 2017 11:30 EST

Generator helps to make close to real-world tests.

Author: Alik Khilazhev

1fcd0adeb3 Add approximated Zipfian-distributed random generator to pgbench.
doc/src/sgml/ref/pgbench.sgml | 29 ++++
src/bin/pgbench/exprparse.y | 3 +
src/bin/pgbench/pgbench.c | 193 ++++++++++++++++++++++++++-
src/bin/pgbench/pgbench.h | 3 +-
src/bin/pgbench/t/001_pgbench_with_server.pl | 38 +++++-
5 files changed, 263 insertions(+), 3 deletions(-)

Upstream: git.postgresql.org


  • Share