Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xum0l-0002ZD-7M for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Nov 2014 17:40:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xum0j-0007ZJ-QR for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Nov 2014 17:40:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xum0h-0007ZA-OE for pgsql-bugs@postgresql.org; Sat, 29 Nov 2014 17:40:43 +0000 Received: from [162.253.133.43] (helo=mwork.nabble.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xum0Z-0003g0-TP for pgsql-bugs@postgresql.org; Sat, 29 Nov 2014 17:40:41 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 38E0BBA2CD7 for ; Sat, 29 Nov 2014 09:40:34 -0800 (PST) Date: Sat, 29 Nov 2014 10:40:33 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1417282833963-5828655.post@n5.nabble.com> In-Reply-To: <11413.1417276522@sss.pgh.pa.us> References: <20141125111529.15508.34881@wrigleys.postgresql.org> <14914.1417017051@sss.pgh.pa.us> <15613.1417121313@sss.pgh.pa.us> <20726.1417220254@sss.pgh.pa.us> <25038.1417228384@sss.pgh.pa.us> <11413.1417276522@sss.pgh.pa.us> Subject: Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 162.253.133.43 (failed) X-Pg-Spam-Score: 0.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 Tom Lane-2 wrote > Tommaso Sala < > tommaso.sala@ > > 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-scale-tp5828340p5828655.html 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