> 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 if there are several inserts at the same time...
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных