title: SQL query to get all values a enum can have
body: <p>Postgresql got enum support some time ago. </p>
  
  <pre><code>CREATE TYPE myenum AS ENUM (
  'value1',
  'value2',
  );
  </code></pre>
  
  <p>How do I get all values specified in the enum with a query?</p>