I would like to create a sql query (or plpgsql) that will md5() all given rows regardless of type. However, below, if one is null then the hash is null:
UPDATE t
select MD5(cast(p as text)) from fiscal_cfop as p