In the current version of the docs here: http://developer.postgresql.org/pgdocs/postgres/functions-sequence.html The lastval() function appears to be missing from table 9-38. I don't see any obvious reason that it's left out. Regards, Jeff Davis