diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-25 16:22:24 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-25 16:22:24 -0400 |
commit | 049e8b07fa076ac20662180152f122ba59f96f9f (patch) | |
tree | dda8b7b98c15f299e3c95a7c1e82dcd5ec8cf8e5 /src/backend/access/gist/gistsplit.c | |
parent | 3c34d7ee8e4617efd3d18999a4453f76bce93f55 (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/gistsplit.c')
0 files changed, 0 insertions, 0 deletions