pgsql: to_char(float4/8): zero pad to specified length - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: to_char(float4/8): zero pad to specified length
Date
Msg-id E1YZUvi-0001k8-Id@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: to_char(float4/8): zero pad to specified length  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
to_char(float4/8):  zero pad to specified length

Previously, zero padding was limited to the internal length, rather than
the specified length.  This allows it to match to_char(int/numeric), which
always padded to the specified length.

Regression tests added.

BACKWARD INCOMPATIBILITY

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/formatting.c    |  114 ++++++++++++++++++++++-----------
src/test/regress/expected/numeric.out |   70 ++++++++++++++++++++
src/test/regress/expected/window.out  |    2 +-
src/test/regress/sql/numeric.sql      |   17 +++++
4 files changed, 163 insertions(+), 40 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: vacuumdb: enable parallel mode
Next
From: Bruce Momjian
Date:
Subject: pgsql: to_char(float4/8): don't print "junk" digits