Re: POC: rational number type (fractions)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: POC: rational number type (fractions)
Дата
Msg-id 20552.1589840076@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: POC: rational number type (fractions)  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: POC: rational number type (fractions)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> On 05/18/20 17:33, Peter Eisentraut wrote:
>> The numeric type already stores rational numbers.  How is this different? 
>> What's the use?

> Won't ever quite represent, say, 1/3, no matter how big you let it get.

There surely are use-cases for true rational arithmetic, but I'm
dubious that it belongs in core Postgres.  I don't think that enough
of our users would want it to justify expending core-project maintenance
effort on it.  So I'd be happier to see this as an out-of-core extension.

(That'd also ease dealing with the prospect of having more than one
variant, as was mentioned upthread.)

            regards, tom lane



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

Предыдущее
От: Chapman Flack
Дата:
Сообщение: Re: POC: rational number type (fractions)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Missing grammar production for WITH TIES