Use:
SELECT (ctyp).f1 FROM tbl;
The parentheses are necessary to disambiguate tables from composite types as detailed in the manual on composite types.
Use:
SELECT (ctyp).f1 FROM tbl;
The parentheses are necessary to disambiguate tables from composite types as detailed in the manual on composite types.