From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Restrict pgbench's zipfian parameter to ensure good performance.
Date: Mon, 01 Apr 2019 21:37:42 +0000
Message-ID: <E1hB4cg-0000PL-FZ@gemulon.postgresql.org> (raw)
Restrict pgbench's zipfian parameter to ensure good performance.
Remove the code that supported zipfian distribution parameters less
than 1.0, as it had undocumented performance hazards, and it's not
clear that the case is useful enough to justify either fixing or
documenting those hazards.
Also, since the code path for parameter > 1.0 could perform badly
for values very close to 1.0, establish a minimum allowed value
of 1.001. This solution seems superior to the previous vague
documentation warning about small values not performing well.
Fabien Coelho, per a gripe from Tomas Vondra
Discussion: https://postgr.es/m/b5e172e9-ad22-48a3-86a3-589afa20e8f7@2ndquadrant.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/26a76cb64072df6fa5585c2c15df39970ccdce01
Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 27 ++---
src/bin/pgbench/pgbench.c | 167 +++------------------------
src/bin/pgbench/t/001_pgbench_with_server.pl | 31 +----
3 files changed, 32 insertions(+), 193 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Restrict pgbench's zipfian parameter to ensure good performance.
In-Reply-To: <E1hB4cg-0000PL-FZ@gemulon.postgresql.org>
References: <E1hB4cg-0000PL-FZ@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