Chris <dmagick(at)gmail(dot)com> writes:> Actually it's better to use currval.
Right. Also, in 8.2 and up there's INSERT RETURNING, which is farmore flexible --- for instance it could pull back an insertiontimestamp.
regards, tom lane