pgsql: Rewrite pg_size_pretty() to avoid compiler bug.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Rewrite pg_size_pretty() to avoid compiler bug.
Дата
Msg-id E1QFgWn-0002O9-Dy@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fd2e2d09aa1d5ba198e09e6d936ff1bba7f62895

Modified Files
--------------
src/backend/utils/adt/dbsize.c |   32 +++++++++++++-------------------
1 files changed, 13 insertions(+), 19 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Rewrite pg_size_pretty() to avoid compiler bug.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Remove special case for xmin == xmax in HeapTupleSatisfiesVacuum