to_regtypemod ( text ) → integerParses a string of text, extracts a potential type name from it, and translates its type modifier, if any. A syntax error in the string will result in an error; but if the string is a syntactically valid type name that happens not to be found in the catalogs, the result is
NULL. The result is -1 if no type modifier is present.format_type(to_regtype('varchar(32)'), to_regtypemod('varchar(32)')) → character varying(32)