pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: lc_numeric and negative-prefix
Date: Wed, 25 Sep 2019 18:53:28 -0400
Message-ID: <29374.1569452008@sss.pgh.pa.us> (raw)
In-Reply-To: <VisenaEmail.1.aeb42fb6f7a3b7ad.16d6a8d9c18@tc7-visena>
References: <VisenaEmail.1.aeb42fb6f7a3b7ad.16d6a8d9c18@tc7-visena>

Andreas Joseph Krogh <andreas@visena.com> writes:
> Can anybody shed som light 
> on when negative-prefix is supposed to be respected by PG's 
> formatting-functions? In lc_numeric='nb_NO.UTF-8' negative-prefix is '−'(8722), 
> not '-'(45), at least in the JAVA-world, but it seems the JDBC-driver must use 
> lc_numeric='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





view thread (3+ messages)  latest in thread

Message-ID: <29374.1569452008@sss.pgh.pa.us>
Permalink:  ../29374.1569452008@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29374.1569452008@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andreas@visena.com
  Subject: Re: lc_numeric and negative-prefix
  In-Reply-To: <29374.1569452008@sss.pgh.pa.us>
  References: <VisenaEmail.1.aeb42fb6f7a3b7ad.16d6a8d9c18@tc7-visena> <29374.1569452008@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox