diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:27 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:27 -0400 |
commit | 9b51d50c2f55ec71a800a48f2955567695c9d26d (patch) | |
tree | 41d426a923f8a114a59892c3e8ddb2660c96e316 /src/backend/access/gist/gistproc.c | |
parent | 1aa24e20241710020926a271609811ef96dea6c6 (diff) | |
download | postgresql-9b51d50c2f55ec71a800a48f2955567695c9d26d.tar.gz postgresql-9b51d50c2f55ec71a800a48f2955567695c9d26d.zip |
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/gistproc.c')
0 files changed, 0 insertions, 0 deletions