Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDGAA-0001CA-Ly for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 22:53:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDGA9-0004Q2-AH for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 22:53:33 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDGA9-0004PL-0p for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 22:53:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDGA6-0001dW-Ql for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 22:53:32 +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 x8PMrSgo029375; Wed, 25 Sep 2019 18:53:29 -0400 From: Tom Lane To: Andreas Joseph Krogh cc: pgsql-general@lists.postgresql.org Subject: Re: lc_numeric and negative-prefix In-reply-to: References: Comments: In-reply-to Andreas Joseph Krogh message dated "Thu, 26 Sep 2019 00:49:33 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <29373.1569452008.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Sep 2019 18:53:28 -0400 Message-ID: <29374.1569452008@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andreas Joseph Krogh writes: > Can anybody shed som light = > on when negative-prefix is supposed to be respected by PG's = > formatting-functions? In lc_numeric=3D'nb_NO.UTF-8' negative-prefix is '= =E2=88=92'(8722), = > not '-'(45), at least in the JAVA-world, but it seems the JDBC-driver mu= st use = > lc_numeric=3D'C' when parsing server output. -- Andreas Joseph Krogh CTO= / Partner PG does not consider LC_NUMERIC at all when producing output from the standard numeric data types (and we aren't going to start). AFAIR the only functions that do pay attention to LC_NUMERIC are to_char() and friends. regards, tom lane