Re: Adding IEEE 754:2008 decimal floating point and hardware support for it - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Adding IEEE 754:2008 decimal floating point and hardware support for it
Date
Msg-id CAM-w4HNwwSYHcnxKtcvY37wXzN=qU-=AG0Bxcz13k9j0Vj11NA@mail.gmail.com
Whole thread Raw
In response to Adding IEEE 754:2008 decimal floating point and hardware support for it  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: Adding IEEE 754:2008 decimal floating point and hardware support for it
List pgsql-hackers
On Wed, Jun 12, 2013 at 12:56 AM, Craig Ringer <craig@2ndquadrant.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



pgsql-hackers by date:

Previous
From: Brendan Jurd
Date:
Subject: Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Next
From: Andrew Dunstan
Date:
Subject: Re: JSON and unicode surrogate pairs