On 16.02.22 06:00, Amul Sul wrote:
Currently, numeric_pg_lsn is the only one that accepts the Numeric value and converts to uint64 and that is the reason all the type conversion code is embedded into it.
There are other functions such as numeric_int8() that work similarly. If you are going to refactor, then they should all be treated similarly. I'm not sure if it's going to end up being beneficial.