On Mon, Mar 29, 2021 at 3:33 PM Isaac Morland <isaac.morl...@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:

https://www.postgresql.org/message-id/flat/CAHE3wggpj%2Bk-zXLUdcBDRe3oahkb21pSMPDm-HzPjZxJn4vMMw%40mail.gmail.com

> 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

Reply via email to