summaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-04-25 16:22:24 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-04-25 16:22:24 -0400
commit049e8b07fa076ac20662180152f122ba59f96f9f (patch)
treedda8b7b98c15f299e3c95a7c1e82dcd5ec8cf8e5 /src/backend/access/gist
parent3c34d7ee8e4617efd3d18999a4453f76bce93f55 (diff)
Fix pg_size_pretty() to avoid overflow for inputs close to INT64_MAX.
The expression that tried to round the value to the nearest TB could overflow, leading to bogus output as reported in bug #5993 from Nicola Cossu. This isn't likely to ever happen in the intended usage of the function (if it could, we'd be needing to use a wider datatype instead); but it's not hard to give the expected output, so let's do so.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions