From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Reducing the overhead of NUMERIC data |
Date: | 2005-11-06 16:26:39 |
Message-ID: | 25092.1131294399@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> On Thu, 2005-11-03 at 10:32 -0500, Tom Lane wrote:
>> I think we could make it go by cramming the sign and
>> the high-order dscale bit into the first NumericDigit --- the
>> digit itself can only be 0..9999 so there are a couple of bits
>> to spare.
> I've got a working version of the code using the above scheme,
Really? After I woke up a bit more I realized there was only one bit
and change to spare, not two, so I don't see how it would work.
(Unless you want to force a minimum of two NumericDigits when the dscale
exceeds 255, and flag the scale in the second one --- which might be OK
but it's getting messier and messier...)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Sherry | 2005-11-06 16:47:12 | Re: PG 8.1 supported platforms list: IRIX is MIA |
Previous Message | Dave Page | 2005-11-06 11:40:02 | pgInstaller 8.1 built |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paesold | 2005-11-07 08:24:08 | Interval aggregate regression failure (expected seems wrong) |
Previous Message | Simon Riggs | 2005-11-06 08:45:58 | Re: Reducing the overhead of NUMERIC data |