title: How can I find the attribute information of User-defined types in Postgres?
body: <p>Consider I have a user-defined type as follows:</p>
  
  <pre><code>CREATE TYPE mytype AS
   (myvar character(1),
    myvar2 bit(10));
  </code></pre>
  
  <p>Can I use any of Postgres’s information tables in order to get the attribute information for this type:</p>
  
  <p>I.e. given “mytype”, the information I want is:</p>
  
  <ul>
  <li><code>myvar  : character(1)</code></li>
  <li><code>myvar2 : bit(10)</code></li>
  </ul>