Various utilities regarding PostgreSQL composite types