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

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Re: Adding IEEE 754:2008 decimal floating point and hardware support for it
Дата
Msg-id CA+U5nM+EJMAhsAfKC4mTZ8ZSsVRoUJh--Y3zXJGMVhg0_vuv8A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Re: Adding IEEE 754:2008 decimal floating point and hardware support for it  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
On 20 June 2013 06:45, Craig Ringer <craig@2ndquadrant.com> wrote:

> I think a good starting point would be to use the Intel and IBM
> libraries to implement basic DECIMAL32/64/128 to see if they perform
> better than the gcc builtins tested by Pavel by adapting his extension.
>
> If the performance isn't interesting it may still be worth adding for
> compliance reasons, but if we can only add IEEE-compliant decimal FP by
> using non-SQL-standard type names I don't think that's super useful.

I think we should be adding a datatype that is IEEE compliant, even if
that doesn't have space and/or performance advantages. We might hope
it does, but if not then it may do in the future.

It seems almost certain that the SQL standard would adopt the IEEE
datatypes in the future.

> If
> there are significant performance/space gains to be had, we could
> consider introducing DECIMAL32/64/128 types with the same names used by
> DB2, so people could explicitly choose to use them where appropriate.

Typenames are easily setup if compatibility is required, so thats not a problem.

We'd want to use the name the SQL std people assign.

--Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Add visibility map information to pg_freespace.
Следующее
От: Markus Wanner
Дата:
Сообщение: Re: Change authentication error message (patch)