Re: Numeric patch to add special-case representations for < 8 bytes - Mailing list pgsql-patches

From Patric Bechtel
Subject Re: Numeric patch to add special-case representations for < 8 bytes
Date
Msg-id 45E7CDF7.6010100@ipcon.de
Whole thread Raw
In response to Re: Numeric patch to add special-case representations for < 8 bytes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Numeric patch to add special-case representations for < 8 bytes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Lane schrieb am 02.03.2007 14:38:
> Gregory Stark <stark@enterprisedb.com> writes:
>> If we stored the digits in base 2 with a base 10 exponent would it really be
>> too hard to output the digits?
>
> Exact decimal fractions are no longer exact when converted to base 2.
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

I think multiplying with base 10 until it's a whole number, then saving
that exponent with it, that's how I understood it.

Patric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: GnuPT 2.5.2

iD8DBQFF5833fGgGu8y7ypARAirsAKCen8BkMyW4cfkoqwEpGo3lThYrJACfWs8L
tnWKkJ/a9aQiO0YQls/YGHg=
=YNlB
-----END PGP SIGNATURE-----

pgsql-patches by date:

Previous
From: "John Bartlett"
Date:
Subject: Re: [HACKERS] - WIP Patch Updatable Cursor
Next
From: Tom Lane
Date:
Subject: Re: Numeric patch to add special-case representations for < 8 bytes