Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbtRN-0002pB-P9 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 May 2013 14:09:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UbtRN-0003OF-9f for pgsql-bugs@arkaria.postgresql.org; Mon, 13 May 2013 14:09:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbtRM-0003O8-PI for pgsql-bugs@postgresql.org; Mon, 13 May 2013 14:09:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UbtRI-0008OK-8j for pgsql-bugs@postgresql.org; Mon, 13 May 2013 14:09:24 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r4DE9Ib5002769; Mon, 13 May 2013 10:09:18 -0400 (EDT) From: Tom Lane To: Heikki Linnakangas cc: Euler Taveira , Thomas Kellerer , pgsql-bugs@postgresql.org Subject: Re: Inconsistency between TO_CHAR() and TO_NUMBER() In-reply-to: <5190C442.3000609@vmware.com> References: <51878292.6080003@fooby.de> <14272.1367850378@sss.pgh.pa.us> <5187C2FE.9000305@fooby.de> <8415.1368200958@sss.pgh.pa.us> <518D71FB.9050106@timbira.com.br> <5190C442.3000609@vmware.com> Comments: In-reply-to Heikki Linnakangas message dated "Mon, 13 May 2013 13:45:22 +0300" Date: Mon, 13 May 2013 10:09:18 -0400 Message-ID: <2768.1368454158@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Heikki Linnakangas writes: > Would it be possible to be lenient, and also accept . as the decimal > separator, when there is no ambiguity? Ie. when . is not the thousands > separator. I originally coded it that way, but concluded that it was probably a waste of code space. How many locales can you point to where neither the decimal point nor thousands_sep is "."? It certainly wouldn't be enough to noticeably reduce the potential pain from this change, so I decided that it'd be better to keep the behavior straightforward and as-documented. 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