Re: pgsql function for roman2decimal? - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: pgsql function for roman2decimal?
Date
Msg-id 20200627212413.GB16643@momjian.us
Whole thread Raw
In response to Re: pgsql function for roman2decimal?  (Erik Brandsberg <erik@heimdalldata.com>)
Responses Re: pgsql function for roman2decimal?  (Erik Brandsberg <erik@heimdalldata.com>)
List pgsql-sql
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@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee




pgsql-sql by date:

Previous
From: Erik Brandsberg
Date:
Subject: Re: pgsql function for roman2decimal?
Next
From: Erik Brandsberg
Date:
Subject: Re: pgsql function for roman2decimal?