Unix Technical Forum

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

This is a discussion on pgsql: The random selection in function linear() could deliver a value within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- The random selection in function linear() could deliver a value equal to max if geqo_rand() returns ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:07 PM
Tom Lane
 
Posts: n/a
Default pgsql: The random selection in function linear() could deliver a value

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/cvsw...1=1.18&r2=1.19)

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com