Kris,
> SELECT currval(pg_get_serial_sequence('mytab','mycol'));
You mean lastval().
-- Josh BerkusPostgreSQL @ SunSan Francisco