pgsql: Prevent integer overflows during units conversion when displaying

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Prevent integer overflows during units conversion when displaying
Дата
Msg-id 20080706194845.53A17754857@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Prevent integer overflows during units conversion when displaying a GUC
variable that has units.  Per report from Stefan Kaltenbrunner.

Backport to 8.2.  I also backported my patch of 2007-06-21 that prevented
comparable overflows on the input side, since that now seems to have enough
field track record to be back-patched safely.  That patch included addition
of hints listing the available unit names, which I did not bother to strip
out of it --- this will make a little more work for the translators, but
they can copy the translation from 8.3, and anyway an untranslated hint
is better than no hint.

Modified Files:
--------------
    pgsql/src/backend/utils/misc:
        guc.c (r1.461 -> r1.462)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c?r1=1.461&r2=1.462)

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

Предыдущее
От: h-saito@pgfoundry.org (User H-saito)
Дата:
Сообщение: psqlodbc - psqlodbc: Fixed has a default promotion can't match an empty
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Prevent integer overflows during units conversion when displaying