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

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: The random selection in function linear() could deliver a value
Дата
Msg-id 20050614142131.DFB2F52824@svr1.postgresql.org
обсуждение исходный текст
Список 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.

Tags:
----
REL7_4_STABLE

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

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

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: The random selection in function linear() could deliver a value
Следующее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: The random selection in function linear() could deliver a value