pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: lc_numeric and negative-prefix
Date: Thu, 26 Sep 2019 01:00:07 +0200 (CEST)
Message-ID: <VisenaEmail.2.ca0eeb68bbbb2fc3.16d6aa6a359@tc7-visena> (raw)
In-Reply-To: <29374.1569452008@sss.pgh.pa.us>

På torsdag 26. september 2019 kl. 00:53:28, skrev Tom Lane <tgl@sss.pgh.pa.us 
<mailto:tgl@sss.pgh.pa.us>>: 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 Thanks for clarifying. -- Andreas Joseph Krogh CTO / Partner
 - Visena AS Mobile: +47 909 56 963 andreas@visena.com 
<mailto:andreas@visena.com> www.visena.com <https://www.visena.com;  
<https://www.visena.com;

view thread (3+ messages)

Message-ID: <VisenaEmail.2.ca0eeb68bbbb2fc3.16d6aa6a359@tc7-visena>
Permalink:  ../VisenaEmail.2.ca0eeb68bbbb2fc3.16d6aa6a359@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.2.ca0eeb68bbbb2fc3.16d6aa6a359@tc7-visena

 · 

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: andreas@visena.com
  Subject: Re: lc_numeric and negative-prefix
  In-Reply-To: <VisenaEmail.2.ca0eeb68bbbb2fc3.16d6aa6a359@tc7-visena>
  References: <29374.1569452008@sss.pgh.pa.us> <VisenaEmail.2.ca0eeb68bbbb2fc3.16d6aa6a359@tc7-visena>

* 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