Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z88Gq-0004w5-6d for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jun 2015 14:36:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z88Gp-0004lR-Lo for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jun 2015 14:36:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z88Go-0004l4-CV for pgsql-bugs@postgresql.org; Thu, 25 Jun 2015 14:36:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z88Gk-0002gc-Is for pgsql-bugs@postgresql.org; Thu, 25 Jun 2015 14:36:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t5PEaZCM001877; Thu, 25 Jun 2015 10:36:35 -0400 From: Tom Lane To: depesz@depesz.com cc: PostgreSQL mailing lists Subject: Re: Bug in docs - modifiers for to_char() In-reply-to: <20150625121556.GA32597@depesz.com> References: <20150625121556.GA32597@depesz.com> Comments: In-reply-to hubert depesz lubaczewski message dated "Thu, 25 Jun 2015 14:15:56 +0200" Date: Thu, 25 Jun 2015 10:36:35 -0400 Message-ID: <1876.1435242995@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org hubert depesz lubaczewski 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