Neil Conway <[EMAIL PROTECTED]> writes: > Abhijit Menon-Sen wrote: >> I'd really like to see a concise, complete description of the proposed >> function, including potential caveats.
> lastval() returns the last value produced by nextval() or setval() in > the current session. This definition is OK with me ... so long as it still includes the phrase "an error occurs if no nextval or setval has occurred in the current session". However it seemed that a number of people asking for the feature wanted some-random-default to be returned instead. Another question is why should setval affect the result? I don't see the use-case for that offhand. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster