Skip site navigation (1) Skip section navigation (2)

Re: Numeric 508 datatype

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Numeric 508 datatype
Date: 2005-12-02 18:03:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackerspgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > So we are really decreasing the specified precision from 1000 to 508,
> > and the computational precision from 4096 to 508.
> The internal computational precision isn't any less, the limit is only
> on the result of a function (ie, partial results within one of the
> numeric.c routines could still exceed 10^508).  Not sure how much that
> distinction matters though.


> > Is there any plan to
> > fix the silent overflow problem?  Is that in the patch?  I don't see it.
> It will get fixed before application ;-)
> I haven't reviewed the patch yet; I think the gating factor at this
> point is whether anyone protests losing dynamic range in NUMERIC,
> and we ought to go ahead and ask that.  After that we can look at the
> code more closely.

I am confused by your use of the term "dynamic" range.  From what you
say above that we are just moving from 1000 to 508 for storage, and that
computational range would still be 4096?

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2005-12-02 18:21:05
Subject: Re: Numeric 508 datatype
Previous:From: Tom LaneDate: 2005-12-02 17:43:28
Subject: Re: Numeric 508 datatype

pgsql-patches by date

Next:From: Julio César ElizondoDate: 2005-12-02 18:19:49
Subject: unsuscribe pgsql-patches
Previous:From: Julio César ElizondoDate: 2005-12-02 17:50:29
Subject: unsuscribe patches

pgsql-general by date

Next:From: Gary HortonDate: 2005-12-02 18:08:40
Subject: createuser ignores stdin in 8.1.0?
Previous:From: Rodrigo GonzalezDate: 2005-12-02 18:02:47
Subject: Re: Slow COUNT

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group