title: how to detect a table is created or skipped in postgres
body: <p>I create a table and an index for that in Postgres by python. I want skip creating an index when creating the table skipped.
  how to detect a table is created or skipped in Postgres? </p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS table_one () INHERITS (table)
  </code></pre>
  
  <p>if creating table isn't skipped</p>
  
  <pre><code>CREATE INDEX ON table_one USING btree (id, time_stamp)
  </code></pre>