> You have to do a a "SELECT curval('myseq')" after the insert.
I had this in mind, too, but I am not sure if it is really safe ifthere are several inserts at the same time...