git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e73bd1e) | patch
Protect GIST logic that assumes penalty values can't be negative.
2011年5月31日 21:53:55 +0000 (17:53 -0400)
2011年5月31日 21:53:55 +0000 (17:53 -0400)
commit b26d8fda6535799be6eee1e93a8f11756b11af95
Protect GIST logic that assumes penalty values can't be negative.

Apparently sane-looking penalty code might return small negative values,
for example because of roundoff error. This will confuse places like
gistchoose(). Prevent problems by clamping negative penalty values to
zero. (Just to be really sure, I also made it force NaNs to zero.)
Back-patch to all supported branches.

Alexander Korotkov
doc/src/sgml/gist.sgml diff | blob | blame | history
src/backend/access/gist/gistutil.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /