Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508

From: "John D(dot) Burger" <john(at)mitre(dot)org>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Cc: John Burger <john(at)mitre(dot)org>
Subject: Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508
Date: 2005-12-06 13:35:50
Message-ID: c8d18f534e89569de5a560fac42e3401@mitre.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

Tom Lane wrote:

> Hm ... between that, the possible crypto connection, and John's
> personal
> testimony that he actually uses PG for calculations in this range, I'm
> starting to lean to the idea that we shouldn't cut the range.

Just to be clear, this John has yet to use NUMERIC for any
calculations, let alone in that range. (I've only used NUMERIC for
importing real-valued data where I didn't want to lose precision with a
floating point representation, for instance, decimal latitude-longitude
values.)

There was this post, though:

Gregory Maxwell wrote:

> I've hesitated commenting, because I think it might be a silly reason,
> but perhaps it's one other people share. ... I use PG as a
> calculator for big numbers because it's the only user friendly thing
> on my system that can do factorial(300) - factorial(280). I'd rather
> use something like octave, but I've found its pretty easy to escape
> its range. If the range for computation is changed, then I'll
> probably keep an old copy around just for this, though I'm not quite
> sure how much I'd be affected..

- John D. Burger
MITRE

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2005-12-06 13:59:36 Re: Inheritance Algebra
Previous Message Rich Doughty 2005-12-06 13:22:57 Re: massive performance hit when using "Limit 1"

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2005-12-06 14:12:15 Re: Optimizer oddness, possibly compounded in 8.1
Previous Message Andrew Dunstan 2005-12-06 13:11:56 Re: [PATCHES] snprintf() argument reordering not working

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-12-06 14:29:33 Re: [PATCHES] snprintf() argument reordering not working
Previous Message Andrew Dunstan 2005-12-06 13:11:56 Re: [PATCHES] snprintf() argument reordering not working