pgsql: Fix pgbench's getrand() function so that min and max have - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix pgbench's getrand() function so that min and max have
Date
Msg-id 20080310012304.A2010753F33@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix pgbench's getrand() function so that min and max have approximately
the same chance of being selected as do numbers between them.  Problem
noted by Greg Stark; fix by Alexey Klyukin.

Modified Files:
--------------
    pgsql/contrib/pgbench:
        pgbench.c (r1.75 -> r1.76)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/pgbench/pgbench.c?r1=1.75&r2=1.76)

pgsql-committers by date:

Previous
From: fxjr@pgfoundry.org (User Fxjr)
Date:
Subject: npgsql - Npgsql2: Added support to property ProcessID in
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Reduce memory consumption during VACUUM of large relations, by