Op 6 Feb 2003 (10:08), schreef Tom Lane <tgl@sss.pgh.pa.us>:
> "Jules Alberts" <jules.alberts@arbodienst-limburg.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!