Re: Adding IEEE 754:2008 decimal floating point and hardware support for it

From: Greg Stark <stark(at)mit(dot)edu>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Adding IEEE 754:2008 decimal floating point and hardware support for it
Date: 2013-06-12 09:55:54
Message-ID: CAM-w4HNwwSYHcnxKtcvY37wXzN=qU-=AG0Bxcz13k9j0Vj11NA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 12, 2013 at 12:56 AM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> The main thing I'm wondering is how/if to handle backward compatibility with
> the existing NUMERIC and its DECIMAL alias

If it were 100% functionally equivalent you could just hide the
implementation internally. Have a bit that indicates which
representation was stored and call the right function depending.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2013-06-12 11:31:15 Re: JSON and unicode surrogate pairs
Previous Message Brendan Jurd 2013-06-12 09:05:10 Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)