title: Postgres domain type information available in JDBC?
body: <p>When querying columns that are a Postgres domain type using JDBC (with driver <a href="https://jdbc.postgresql.org/" rel="nofollow noreferrer">https://jdbc.postgresql.org/</a> version 42.3.3), there doesn't seem to be any way of getting the domain information; only the underlying datatype is reported.</p>
  <pre><code>create domain account_uuid_type as uuid;
  create domain customer_uuid_type as uuid;
  
  create table test (
      account_uuid account_uuid_type,
      customer_uuid customer_uuid_type
  );
  
  insert into test
  (account_uuid, customer_uuid)
  values
  (
      '4c1210c2-e785-4462-926c-1789cd1aa88c',
      'b155e10c-10cd-4a11-b427-d7c78397b617'
  );
  </code></pre>
  <p>When querying the table from Java using <code>select account_uuid, customer_uuid from test</code>, the information from the <code>PgResultSet</code> is that the <code>pgType</code> values for the columns is <code>uuid</code>. There's no mention of the more specific domain information. Is there a way of asking Postgres to add the domain information into the metadata?</p>