Re: Greatest Common Divisor - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Greatest Common Divisor
Date
Msg-id 18358.1578064922@sss.pgh.pa.us
Whole thread Raw
In response to Re: Greatest Common Divisor  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Greatest Common Divisor  (Robert Haas <robertmhaas@gmail.com>)
Re: Greatest Common Divisor  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List 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 by date:

Previous
From: Jehan-Guillaume de Rorthais
Date:
Subject: Re: Fetching timeline during recovery
Next
From: Justin Pryzby
Date:
Subject: explain HashAggregate to report bucket and memory stats