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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| Thread Tools | |
| Display Modes | |
|
|