diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-25 16:22:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-25 16:22:28 -0400 |
commit | d3964cdb9c3e14e97c226b8143b5471d7b98c597 (patch) | |
tree | 1167a6716019ead05d1a7182cc26d48c70d460e1 /src/backend/access/gist/gistvacuum.c | |
parent | 1e289824b6fa9a2ce7ed13d8559f05683a75f466 (diff) | |
download | postgresql-d3964cdb9c3e14e97c226b8143b5471d7b98c597.tar.gz postgresql-d3964cdb9c3e14e97c226b8143b5471d7b98c597.zip |
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/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions