git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c02bc63) | patch
Rewrite pg_size_pretty() to avoid compiler bug.
2011年4月29日 05:45:02 +0000 (01:45 -0400)
2011年4月29日 05:45:02 +0000 (01:45 -0400)
commit cb0bcf45cbe1092081331f3f759c3ab7580d0cb1
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.
src/backend/utils/adt/dbsize.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /