pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale
Date: Sat, 29 Nov 2014 10:40:33 -0700 (MST)
Message-ID: <1417282833963-5828655.post@n5.nabble.com> (raw)
In-Reply-To: <11413.1417276522@sss.pgh.pa.us>
References: <20141125111529.15508.34881@wrigleys.postgresql.org>
	<14914.1417017051@sss.pgh.pa.us>
	<CAPPt9DkAgK9MbLtLJB8B16N=5jyF4+-4jo9v2jqLudd5bwdPFQ@mail.gmail.com>
	<15613.1417121313@sss.pgh.pa.us>
	<CAPPt9DmSArf59pK3GU3pJgm1mZRnkUFBbsYnJDYmoVO4L_r2=g@mail.gmail.com>
	<20726.1417220254@sss.pgh.pa.us>
	<25038.1417228384@sss.pgh.pa.us>
	<11413.1417276522@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Tom Lane-2 wrote
> Tommaso Sala &lt;

> tommaso.sala@

> &gt; writes:
>> The strange fact is that if you try to write 0.000001, it gets displayed
>> correctly
> 
> My guess is that the adapter miscomputes dscale in only some situations.
> 
>> I'd agree with your proposed solution, if I only set a dscale of 2.
>> But I didn't.
> 
> You didn't, but the available evidence says that Devart's adapter did.
> 
> If you maintain there is some other bug involved, maybe I *should* make
> numeric_recv throw an error, just so the blame gets placed clearly.
> 
> 			regards, tom lane

Would there be value in back-patching the truncation option but making it
fail in 9.5?

I assume this is somehow a different situation than that where someone does,
for instance, (1.0/3.0)::numeric(5,2) or '1.0001':numeric(3,2)...neither of
these should fail.

David J.





--
View this message in context: http://postgresql.nabble.com/BUG-12053-Strange-behavior-for-numeric-types-with-unspecified-precision...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)

Message-ID: <1417282833963-5828655.post@n5.nabble.com>
Permalink:  ../1417282833963-5828655.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1417282833963-5828655.post@n5.nabble.com

 · 

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-bugs@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale
  In-Reply-To: <1417282833963-5828655.post@n5.nabble.com>
  References: <20141125111529.15508.34881@wrigleys.postgresql.org> <14914.1417017051@sss.pgh.pa.us> <CAPPt9DkAgK9MbLtLJB8B16N=5jyF4+-4jo9v2jqLudd5bwdPFQ@mail.gmail.com> <15613.1417121313@sss.pgh.pa.us> <CAPPt9DmSArf59pK3GU3pJgm1mZRnkUFBbsYnJDYmoVO4L_r2=g@mail.gmail.com> <20726.1417220254@sss.pgh.pa.us> <25038.1417228384@sss.pgh.pa.us> <11413.1417276522@sss.pgh.pa.us> <1417282833963-5828655.post@n5.nabble.com>

* 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