From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Further fix for psql's code for locale-aware formatting of numer |
Date: | 2015-09-25 16:21:10 |
Message-ID: | E1ZfVkE-0001cU-9m@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Further fix for psql's code for locale-aware formatting of numeric output.
(Third time's the charm, I hope.)
Additional testing disclosed that this code could mangle already-localized
output from the "money" datatype. We can't very easily skip applying it
to "money" values, because the logic is tied to column right-justification
and people expect "money" output to be right-justified. Short of
decoupling that, we can fix it in what should be a safe enough way by
testing to make sure the string doesn't contain any characters that would
not be expected in plain numeric output.
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/5eb7024379ec0701ce2fae242ae90d7d56ee72bb
Modified Files
--------------
src/bin/psql/print.c | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-09-25 16:22:07 | Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references. |
Previous Message | Jan Wieck | 2015-09-25 14:20:30 | Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references. |