pgsql: Prevent integer overflows during units conversion when displaying - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Prevent integer overflows during units conversion when displaying
Date
Msg-id 20080706194902.2A5A0754857@cvs.postgresql.org
Whole thread Raw
List 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.

Tags:
----
REL8_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/misc:
        guc.c (r1.360.2.2 -> r1.360.2.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c?r1=1.360.2.2&r2=1.360.2.3)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Prevent integer overflows during units conversion when displaying
Next
From: petere@postgresql.org (Peter Eisentraut)
Date:
Subject: pgsql: Added documentation for xmlagg function.