If I have a table mytable (id serial, y integer) and wish to insert arow into the table in a plpgsql function, how can I catch the id(serial number) of the last inserted row?