title: How to delete table *or* view from PostgreSQL database?
body: <p>I have a name of table or view in PostgreSQL database and need to delete in in single pgSQL command. How can i afford it?</p>
  
  <p>I was able to select form system table to find out if there any table with such a name but stuck with procedural part:</p>
  
  <pre><code>SELECT count(*) FROM pg_tables where tablename='user_statistics';
  </code></pre>