From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support RN (roman-numeral format) in to_number().
Date: Wed, 22 Jan 2025 20:19:01 +0000
Message-ID: <E1tahBl-002xsj-OD@gemulon.postgresql.org> (raw)
Support RN (roman-numeral format) in to_number().
We've long had roman-numeral output support in to_char(),
but lacked the reverse conversion. Here it is.
Author: Hunaid Sohail <hunaidpgml@gmail.com>
Reviewed-by: Maciek Sakrejda <m.sakrejda@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://postgr.es/m/CAMWA6ybh4M1VQqpmnu2tfSwO+3gAPeA8YKnMHVADeB=XDEvT_A@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/172e6b3adb2e2749883ad0746172e4cf97139961
Modified Files
--------------
doc/src/sgml/func.sgml | 17 ++-
src/backend/utils/adt/formatting.c | 275 +++++++++++++++++++++++++++-------
src/test/regress/expected/numeric.out | 78 ++++++++++
src/test/regress/sql/numeric.sql | 33 ++++
4 files changed, 350 insertions(+), 53 deletions(-)
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Support RN (roman-numeral format) in to_number().
In-Reply-To: <E1tahBl-002xsj-OD@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox