Get list of tables that would be truncated by a cascade
<p>Is there a way to get a list of tables that would also be truncated by a <code>TRUNCATE CASCADE</code> in postgres?</p>

<p>So for example, assuming we have three tables:</p>

<pre><code>a
b (depends on a)
c (depends on b)
</code></pre>

<p><code>TRUNCATE a CASCADE;</code> would also truncate <code>b</code> and <code>c</code>. How could we check this ahead of time? </p>