Information about the fields that make up the composite type can be retrieved as follows:
select * from pg_attribute where attrelid = (select typrelid from pg_type where typname = 't_employee')
where t_employee is the name of the composite type.
source share