diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:21 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:21 -0400 |
commit | 67abb9598fdf4231b8e1a9f433bbcf1ee7fe3d68 (patch) | |
tree | 8fa4bcfae0d4730ae757092c3cfc71959ce66051 /src/backend/access/gist/gistget.c | |
parent | 9c46b7a14d03af06ee25bbf42bf478795cce566e (diff) |
Rewrite pg_size_pretty() to avoid compiler bug.
Convert it to use successive shifts right instead of increasing a divisor.
This is probably a tad more efficient than the original coding, and it's
nicer-looking than the previous patch because we don't need a special case
to avoid overflow in the last branch. But the real reason to do it is to
avoid a Solaris compiler bug, as per results from buildfarm member moa.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions