title: Postgres - How to drop all tables in a database except for 3
body: <p>I know that to drop a table in a database is as follows, but if I have a database that has over a dozen tables and I only need to keep 3 of them, am I able to delete all but the 3 with only one command?</p>
  
  <pre><code>DROP TABLE IF EXISTS c_note RESTRICT;
  </code></pre>