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

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: "John D(dot) Burger" <john(at)mitre(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508
Date: 2005-12-06 18:27:49
Message-ID: 200512061827.jB6IRnW25738@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

Tom Lane wrote:
> "John D. Burger" <john(at)mitre(dot)org> writes:
> > Tom Lane wrote:
> >> Hm ... between that, the possible crypto connection, and John's
> >> personal testimony
>
> > Just to be clear, this John has yet to use NUMERIC for any
> > calculations, let alone in that range.
>
> My mistake, got confused as to who had said what.
>
> The point remains though: in discussing this proposed patch, we were
> assuming that 10^508 would still be far beyond what people actually
> needed. Even one or two reports from the list membership of actual
> use of larger values casts a pretty big shadow on that assumption.

Agreed. I would like to see us hit the big savings first, like merging
cmin/cmax (4 bytes per row) and reducing the varlena header size (2-3
bytes for short values), before we start going after disk savings that
actually limit our capabilites.

--
Bruce Momjian | http://candle.pha.pa.us
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

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2005-12-06 18:59:10 ltree patch is available
Previous Message Tom Lane 2005-12-06 18:20:15 Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2005-12-06 18:32:53 Re: Optimizer oddness, possibly compounded in 8.1
Previous Message Tom Lane 2005-12-06 18:20:15 Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-12-06 18:40:01 Comments about libintl and *printf
Previous Message Tom Lane 2005-12-06 18:20:15 Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508