title: Using returning id of last insert into other queries in postgres
body: <p>Is it possible to use queries like given below? If there is any better way to do it please let me know.</p>
  
  <pre><code>INSERT INTO table1 VALUES (...) RETURNING id INTO t1_id;
  
  UPDATE table2 SET column1 = value1, column2 = value2....WHERE id = t1_id;
  
  UPDATE table3 SET column1 = value1, column2 = value2....WHERE id = t1_id;
  </code></pre>
  
  <p>Thanks</p>