Re: Greatest Common Divisor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Greatest Common Divisor
Дата
Msg-id 18358.1578064922@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Greatest Common Divisor  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: Greatest Common Divisor
Re: Greatest Common Divisor
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2020-01-02 15:50, Dean Rasheed wrote:
>> Out of curiosity, what was the original use-case for this?

> Yeah, I'm wondering, is this useful for any typical analytics or 
> business application?  Otherwise, abstract algebra functionality seems a 
> bit out of scope.

Nobody complained when we added sinh, cosh, tanh, asinh, acosh, atanh
last year, so I'm feeling skeptical of claims that gcd should be out
of scope.

Now, those functions were just exposing libc functionality, so there
wasn't a lot of code to write.  There might be a good argument that
gcd isn't useful enough to justify the amount of code we'd have to
add (especially if we allow it to scope-creep into needing to deal
with "numeric" calculations).  But I'm not on board with just
dismissing it as uninteresting.

            regards, tom lane



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

Предыдущее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Re: Fetching timeline during recovery
Следующее
От: Justin Pryzby
Дата:
Сообщение: explain HashAggregate to report bucket and memory stats