Re: pgsql function for roman2decimal?

From: Erik Brandsberg <erik(at)heimdalldata(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: F Bax <fbax(dot)ca(at)gmail(dot)com>, pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql function for roman2decimal?
Date: 2020-06-27 21:28:51
Message-ID: CAFcck8EVFrfN7-+tfg3acvpPndSZ-pMqOWNE_ibOsw6MZ7WSyA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

If the core code already does one direction (I didn't know this) then I
would agree. It seems that both would make sense to be in a
separate module, due to the rarity of use, possibly just as an "exotic
function" module, which would have a lower barrier of entry to adding code
to.

On Sat, Jun 27, 2020 at 5:24 PM Bruce Momjian <bruce(at)momjian(dot)us> wrote:

> On Sat, Jun 27, 2020 at 05:14:27PM -0400, Erik Brandsberg wrote:
> > This really feels like something that should be part of a module and not
> the
> > core code.
>
> Well, we already do the numeric to Roman conversion, so doing the
> reverse seems to make sense:
>
> SELECT to_char(335, 'RN');
> to_char
> -----------------
> CCCXXXV
>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
> EnterpriseDB https://enterprisedb.com
>
> The usefulness of a cup is in its emptiness, Bruce Lee
>
>

--
*Erik Brandsberg*
erik(at)heimdalldata(dot)com

www.heimdalldata.com
+1 (866) 433-2824 x 700
[image: AWS Competency Program]
<https://aws.amazon.com/partners/find/partnerdetails/?n=Heimdall%20Data&id=001E000001d9pndIAA>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2020-06-27 21:31:41 Re: pgsql function for roman2decimal?
Previous Message Bruce Momjian 2020-06-27 21:24:13 Re: pgsql function for roman2decimal?