Re: NUMERIC private methods?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: NUMERIC private methods?
Дата
Msg-id 20141219025137.GS1768@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: NUMERIC private methods?  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: NUMERIC private methods?  (David Fetter <david@fetter.org>)
Список pgsql-hackers
Robert Haas wrote:

> I think that's ridiculous.  You're basically arguing that numeric
> doesn't offer meaningful advantages over float8, which flies in the
> face of the fact that essentially every database application I've ever
> seen uses numeric and I'm not sure I've ever seen one using float8.
> Nearly all database users prefer to store quantities like currency
> units in a type that is guaranteed not to lose precision.

I think it's reasonable to expose NumericVar and the supporting function
prototypes in, say, numeric_internal.h; normal applications that just
want to operate on numerics as today can just include numeric.h, and
continue to be at arms-length of the implementation details, while code
that wants to optimize operations further can use numeric_internal.h and
be very aware that they are subject to heavy breakage if we ever feel a
need to change the internal API.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: NUMERIC private methods?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Commit fest 2014-12, let's begin!