Add pg_basetype() function to extract a domain's base type.