unclear description for the Pattern Modifiers in formatting functions

Поиск
Список
Период
Сортировка
От Marc Mamin
Тема unclear description for the Pattern Modifiers in formatting functions
Дата
Msg-id B6F6FD62F2624C4C9916AC0175D56D8828C20CF8@jenmbs01.ad.intershop.net
обсуждение исходный текст
Ответы Re: unclear description for the Pattern Modifiers in formatting functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
http://www.postgresql.org/docs/9.5/static/functions-formatting.html#FUNCTIONS-FORMATTING-DATETIMEMOD-TABLE

The page suggests that the pattern modifiers (e.g. 'FM') only apply for Date/Time Format.

But at least FM can also be used for number types:

select to_char(1,'(99999)')
UNION ALL
select to_char(1,'(FM99999)')
-----------------------------
(     1)
(1)


Maybe it would be sufficient to just add FM into the table 9.24
( http://www.postgresql.org/docs/9.5/static/functions-formatting.html#FUNCTIONS-FORMATTING-NUMERIC-TABLE )



regards,

Marc Mamin




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Error in ALTER TABLE documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: unclear description for the Pattern Modifiers in formatting functions