Re: lastval() - Mailing list pgsql-patches

From Neil Conway
Subject Re: lastval()
Date
Msg-id 42A3B26E.20709@samurai.com
Whole thread Raw
In response to Re: lastval()  (Dennis Bjorklund <db@zigo.dhs.org>)
Responses Re: lastval()  (Abhijit Menon-Sen <ams@oryx.com>)
Re: lastval()  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
If you're busy, I can clean this up and apply it.

I wonder if it would be better to have lastval() return the last value
returned by nextval() or setval() for the current session, regardless of
any intervening DROP SEQUENCE commands. This would simplify the
implementation (we can just store the int8 value produced by the last
nextval() / setval() rather than a pointer to the sequence object
itself), although it is debatable whether this behavior is more logical
or not. Comments?

-Neil

pgsql-patches by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Simplify Win32 Signaling code
Next
From: Abhijit Menon-Sen
Date:
Subject: Re: lastval()