agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Bruce Momjian <bruce@momjian.us>
To: Erik Brandsberg <erik@heimdalldata.com>
Cc: F Bax <fbax.ca@gmail.com>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: pgsql function for roman2decimal?
Date: Sat, 27 Jun 2020 17:24:13 -0400
Message-ID: <20200627212413.GB16643@momjian.us> (raw)
In-Reply-To: <CAFcck8Hw2VTVo98KQrZefcg0dJqObco87sQbi1Mewg+FLktKig@mail.gmail.com>
References: <CAAmqg_CE9+wFDZkqkXSg_6mZAYBLMsjBjZm+d4CdGrQxqX5Dhw@mail.gmail.com>
<20200627210157.GA16643@momjian.us>
<CAFcck8Hw2VTVo98KQrZefcg0dJqObco87sQbi1Mewg+FLktKig@mail.gmail.com>
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
view thread (6+ messages) latest in thread
Message-ID: <20200627212413.GB16643@momjian.us>
Permalink: ../20200627212413.GB16643@momjian.us/
Also on: postgresql.org/message-id/20200627212413.GB16643@momjian.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruce@momjian.us, erik@heimdalldata.com, fbax.ca@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: pgsql function for roman2decimal?
In-Reply-To: <20200627212413.GB16643@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox