Skip site navigation (1) Skip section navigation (2)

pgsql: The random selection in function linear() could deliver a value

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: The random selection in function linear() could deliver a value
Date: 2005-06-14 14:21:23
Message-ID: 20050614142123.A79C952944@svr1.postgresql.org (view raw or flat)
Thread:
Lists: 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(at)zedware(dot)org(dot)

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/optimizer/geqo:
        geqo_selection.c (r1.18 -> r1.18.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/geqo/geqo_selection.c.diff?r1=1.18&r2=1.18.4.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2005-06-14 14:21:31
Subject: pgsql: The random selection in function linear() could deliver a value
Previous:From: Tom LaneDate: 2005-06-14 14:21:16
Subject: pgsql: The random selection in function linear() could deliver a value

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group