diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-08-29 09:34:21 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-08-29 09:34:21 -0400 |
commit | dbc7a7d9201da6cd85dc0bba4499c2367a2cf9d7 (patch) | |
tree | 0357348806631ee2e4356b514b16c6b1f14c76a3 /src | |
parent | 254bb39b720426f7a4616cb6b40f810c44b24b20 (diff) | |
download | postgresql-dbc7a7d9201da6cd85dc0bba4499c2367a2cf9d7.tar.gz postgresql-dbc7a7d9201da6cd85dc0bba4499c2367a2cf9d7.zip |
Improve docs about numeric formatting patterns (to_char/to_number).
The explanation about "0" versus "9" format characters was confusing
and arguably wrong; the discussion of sign handling wasn't very good
either. Notably, while it's accurate to say that "FM" strips leading
zeroes in date/time values, what it really does with numeric values
is to strip *trailing* zeroes, and then only if you wrote "9" rather
than "0". Per gripes from Erwin Brandstetter.
Discussion: https://postgr.es/m/CAGHENJ7jgRbTn6nf48xNZ=FHgL2WQ4X8mYsUAU57f-vq8PubEw@mail.gmail.com
Discussion: https://postgr.es/m/CAGHENJ45ymd=GOCu1vwV9u7GmCR80_5tW0fP9C_gJKbruGMHvQ@mail.gmail.com
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions