pgsql function for roman2decimal?

F Bax <fbax.ca@gmail.com>

From: F Bax <fbax.ca@gmail.com>
To: pgsql-sql@lists.postgresql.org
Date: 2020-06-27T20:38:59Z
Lists: pgsql-sql
I found simple code for PHP to convert roman numeral to decimal here:

https://stackoverflow.com/questions/6265596/how-to-convert-a-roman-numeral-to-integer-in-php


Can this be accomplished with a pgsql function?