title: select/display last inserted serial id in postgres
body: <p>in sql server I do like this:</p>
  
  <pre><code>insert into foo(name) values('bob')
  select @@identity;
  </code></pre>
  
  <p>so I get a query/scalar result displayed</p>
  
  <p>how to this with postgres ?</p>