diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-08-30 22:52:43 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-08-30 22:53:17 -0400 |
commit | e5db11c5582b469c04a11f217a0f32c827da5dd7 (patch) | |
tree | efc81df37bab68999a6c6a3883c67d6b8e173fdb /src/backend/access/gist/gistget.c | |
parent | 5fcb58baca7a78e688b84275958c450670ba62a8 (diff) | |
download | postgresql-e5db11c5582b469c04a11f217a0f32c827da5dd7.tar.gz postgresql-e5db11c5582b469c04a11f217a0f32c827da5dd7.zip |
Improve coding of gistchoose and gistRelocateBuildBuffersOnSplit.
This is mostly cosmetic, but it does eliminate a speculative portability
issue. The previous coding ignored the fact that sum_grow could easily
overflow (in fact, it could be summing multiple IEEE float infinities).
On a platform where that didn't guarantee to produce a positive result,
the code would misbehave. In any case, it was less than readable.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions