Re: [WIP] Zipfian distribution in pgbench
Alik Khilazhev <a.khilazhev@postgrespro.ru>
From: Alik Khilazhev <a.khilazhev@postgrespro.ru>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2017-08-22T20:09:38Z
Lists: pgsql-hackers
Attachments
- pgbench-zipf-07v.patch (application/octet-stream) patch
- (unnamed) (text/plain)
Hello, Fabien I am attaching patch v7. > Yes, I agree. a >= 10000 does not make much sense... If you want uniform you should use random(), not call random_zipfian with a = 10000. Basically it suggests that too large values of "a" should be rejected. Not sure where to put the limit, though. I set upper bound for parameter to be equal to 1000. > > Yes, as a general principle I think that the documentation should reflect the implementation. Documentation have been updated, I have removed algorithms descriptions and put references to them there.
Commits
-
Add approximated Zipfian-distributed random generator to pgbench.
- 1fcd0adeb38d 11.0 landed