Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmR2s-0005XM-6D for pgsql-docs@arkaria.postgresql.org; Mon, 28 Aug 2017 20:54:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dmR2r-0003i9-85 for pgsql-docs@arkaria.postgresql.org; Mon, 28 Aug 2017 20:54:05 +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_2) (envelope-from ) id 1dmR2q-0003hl-MJ for pgsql-docs@postgresql.org; Mon, 28 Aug 2017 20:54:04 +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_2) (envelope-from ) id 1dmR2n-0005Ha-An for pgsql-docs@postgresql.org; Mon, 28 Aug 2017 20:54:04 +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 v7SKrvAX021768; Mon, 28 Aug 2017 16:53:57 -0400 From: Tom Lane To: Erwin Brandstetter cc: "David G. Johnston" , "pgsql-docs@postgresql.org" Subject: Re: Failing example for to_number() In-reply-to: References: Comments: In-reply-to Erwin Brandstetter message dated "Mon, 21 Aug 2017 16:55:52 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21766.1503953637.1@sss.pgh.pa.us> Date: Mon, 28 Aug 2017 16:53:57 -0400 Message-ID: <21767.1503953637@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Erwin Brandstetter writes: > On 21 August 2017 at 16:30, David G. Johnston > wrote: >> On Mon, Aug 21, 2017 at 5:36 AM, Erwin Brandstetter >> wrote: >>> The example fails for locales where the comma (',') does not happen to be >>> the group separator and the dot ('.') is not the decimal point. >> If one wants to try the example in a language other than in which the >> example was written they should modify it so that the literal number being >> parsed in written in conformance to the locale definition for the language >> you are using. > I guess there should be some more explanation. Yeah. How about adding something like this to the "Usage notes for numeric formatting" between tables 9-26 and 9-27: * The pattern characters S, L, D, and G represent the sign, currency symbol, decimal point, and thousands separator characters defined by the current locale (see lc_monetary and lc_numeric). The pattern characters period and comma represent those exact characters, with the meanings of decimal point and thousands separator, regardless of locale. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs