aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-14 14:21:31 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-14 14:21:31 +0000
commita1f08fcf80683c1c4e83e1c97d6fb3443eff3b05 (patch)
treebd5ee41c370d7005fa599f5c205242307c93320b /src/backend/access/gist
parent4f3ae012fdf435e601d54f7a6ee6fb791a1a4774 (diff)
downloadpostgresql-a1f08fcf80683c1c4e83e1c97d6fb3443eff3b05.tar.gz
postgresql-a1f08fcf80683c1c4e83e1c97d6fb3443eff3b05.zip
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.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions