pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Bug in docs - modifiers for to_char()
2+ messages / 2 participants
[nested] [flat]

* Bug in docs - modifiers for to_char()
@ 2015-06-25 12:15 hubert depesz lubaczewski <depesz@depesz.com>
  2015-06-25 14:36 ` Re: Bug in docs - modifiers for to_char() Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: hubert depesz lubaczewski @ 2015-06-25 12:15 UTC (permalink / raw)
  To: pgsql-bugs

Hi,
in Table 9-23
(http://www.postgresql.org/docs/devel/static/functions-formatting.html)

It says:

> FM prefix | fill mode (suppress padding blanks and trailing zeroes)

In next part it says:

> FM suppresses leading zeroes and trailing blanks



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Bug in docs - modifiers for to_char()
  2015-06-25 12:15 Bug in docs - modifiers for to_char() hubert depesz lubaczewski <depesz@depesz.com>
@ 2015-06-25 14:36 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-06-25 14:36 UTC (permalink / raw)
  To: depesz@depesz.com; +Cc: pgsql-bugs

hubert depesz lubaczewski <depesz@depesz.com> writes:
> in Table 9-23
> (http://www.postgresql.org/docs/devel/static/functions-formatting.html)
> It says:
>> FM prefix | fill mode (suppress padding blanks and trailing zeroes)
> In next part it says:
>> FM suppresses leading zeroes and trailing blanks
> From all I can tell, the text in table is wrong - wasn't able to find
> any case where FM would delete trailing zeros, and it definitely removes
> leading ones.

Yeah, you're right.

I also fail to find anyplace where it explains what FM does for input
cases. However, to_number/to_date/to_timestamp are woefully
underdocumented anyhow (eg, almost no examples), so maybe that would
be better addressed as part of a larger rewrite.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-06-25 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-25 12:15 Bug in docs - modifiers for to_char() hubert depesz lubaczewski <depesz@depesz.com>
2015-06-25 14:36 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox