diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-29 01:45:13 -0400 |
commit | c5459735fd4d5ec8ea5ebfcd5dec03548d9ac8d4 (patch) | |
tree | 019bdcea41b1b4a25b85cd0cc55bcc4bdde95fb2 /src/backend/access/gist | |
parent | cb4fda63808a5fe35a72ed60e3ab7a77c2f16c45 (diff) | |
download | postgresql-c5459735fd4d5ec8ea5ebfcd5dec03548d9ac8d4.tar.gz postgresql-c5459735fd4d5ec8ea5ebfcd5dec03548d9ac8d4.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')
0 files changed, 0 insertions, 0 deletions