pgsql: to_char(float4/8): zero pad to specified length

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: to_char(float4/8): zero pad to specified length
Дата
Msg-id E1YZUvi-0001k8-Id@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: to_char(float4/8): zero pad to specified length  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: vacuumdb: enable parallel mode
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: to_char(float4/8): don't print "junk" digits