Support RN (roman-numeral format) in to_number().
commit172e6b3adb2e2749883ad0746172e4cf97139961
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Jan 2025 20:18:40 +0000 (22 15:18 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Jan 2025 20:18:50 +0000 (22 15:18 -0500)
tree9adaf69a8bbd51298bdc6385dc7a56b7f7501ca0
parentf0ee648527e54c465e398d993db892af61a228da
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
doc/src/sgml/func.sgml
src/backend/utils/adt/formatting.c
src/test/regress/expected/numeric.out
src/test/regress/sql/numeric.sql