title: Show only list of tables without child partitions
body: <p>I would like to show only the list of top level tables without child partitioned tables in PostgreSQL. (Currently using PostgreSQL 12.)</p>
  <p><code>\dt</code> in psql gives me all tables, including partitions of tables. I see this:</p>
  <pre class="lang-none prettyprint-override"><code>postgres=# \dt
  
                           List of relations
  
   Schema |             Name             |       Type        | Owner  
  --------+------------------------------+-------------------+--------  
  public  | tablea                       | table             | me
  public  | partitionedtable1            | partitioned table | me
  public  | partitionedtable1_part1      | table             | me
  public  | partitionedtable1_part2      | table             | me
  public  | partitionedtable1_part3      | table             | me
  public  | tableb                       | table             | me
  </code></pre>
  <p>But I want a list like this, without child partitions of the parent partitioned table:</p>
  <pre class="lang-none prettyprint-override"><code>                         List of relations
  
   Schema |             Name             |       Type        | Owner  
  --------+------------------------------+-------------------+--------  
  public  | tablea                       | table             | me
  public  | partitionedtable1            | partitioned table | me
  public  | tableb                       | table             | me
  </code></pre>