Re: Add missing function abs (interval) - Mailing list pgsql-hackers

From John Naylor
Subject Re: Add missing function abs (interval)
Date
Msg-id CAFBsxsEcgHzkOnK=X68W8NFCZH7BuHGx5ufE1dKZxxmCtuyqRw@mail.gmail.com
Whole thread Raw
In response to Add missing function abs (interval)  (Isaac Morland <isaac.morland@gmail.com>)
Responses Re: Add missing function abs (interval)  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers

On Mon, Mar 29, 2021 at 3:33 PM Isaac Morland <isaac.morland@gmail.com> wrote:
>
> On a newly set up system there are 7 types with a unary minus operator defined, but only 6 of them have an abs function:
>
...
> Would a patch to add a function with this behaviour to the initial database be welcome?

Looking in the archives, I see this attempt that you can build upon:


> If so, should I implement it essentially like the above, or as an internal function? I've noticed that even when it seems like it might be reasonable to implement a built-in function as an SQL function they tend to be internal.

By default it should be internal. 

--
John Naylor
EDB: http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: making update/delete of inheritance trees scale better
Next
From: Mark Dilger
Date:
Subject: Re: pg_amcheck contrib application