lastval() returns the last value produced by nextval() or setval() in the current session.
I'm in favour of that definition...
Chris ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])