Re: Numeric patch to add special-case representations for < 8 bytes

From: Patric Bechtel <bechtel(at)ipcon(dot)de>
To: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Numeric patch to add special-case representations for < 8 bytes
Date: 2007-03-02 07:10:47
Message-ID: 45E7CDF7.6010100@ipcon.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Lane schrieb am 02.03.2007 14:38:
> Gregory Stark <stark(at)enterprisedb(dot)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-----

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-03-02 07:25:51 Re: Numeric patch to add special-case representations for < 8 bytes
Previous Message John Bartlett 2007-03-02 06:47:46 Re: [PATCHES] - WIP Patch Updatable Cursor