pgsql: The random selection in function linear() could deliver a value - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: The random selection in function linear() could deliver a value
Date
Msg-id 20050614142116.D28C2528BF@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
The random selection in function linear() could deliver a value equal to max
if geqo_rand() returns exactly 1.0, resulting in failure due to indexing
off the end of the pool array.  Also, since this is using inexact float math,
it seems wise to guard against roundoff error producing values slightly
outside the expected range.  Per report from bug@zedware.org.

Modified Files:
--------------
    pgsql/src/backend/optimizer/geqo:
        geqo_selection.c (r1.18 -> r1.19)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/geqo/geqo_selection.c.diff?r1=1.18&r2=1.19)

pgsql-committers by date:

Previous
From: teodor@svr1.postgresql.org (Teodor Sigaev)
Date:
Subject: pgsql: WAL for GiST.
Next
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: The random selection in function linear() could deliver a value