title: Programmatically create a new table from anothers (Postgres)
body: <p>I have 32 tables with the exactly the same schema (i.e. same columns names, etc.) in a PostgreSQL 9.1 data base, and I want to create a new table from them (so I can unify the queries). </p>
  
  <p>I know that I can use a INSERT SELECT technique, table by table, but I was wondering if its a better way of do that. Maybe a for loop?</p>
  
  <p>Thanks in advance</p>