record_inspect defines functions which allow introspection of record and composite types from PL/pgSQL and PL/SQL.
README