Op 6 Feb 2003 (10:08), schreef Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> "Jules Alberts" <jules(dot)alberts(at)arbodienst-limburg(dot)nl> writes:
> > Something like lastval() IMHO is way too risky.
>
> currval() is what you want, and it is *not* risky. Read the sequence
> documentation.
I did that, and currval() _is_ the answer :-)
It operates on the current process only (out of curiosity I tested it),
so it's safe.
Thanks a lot!