Re: lastval() - Mailing list pgsql-patches

From Tom Lane
Subject Re: lastval()
Date
Msg-id 13945.1115591809@sss.pgh.pa.us
Whole thread Raw
In response to lastval()  (Dennis Bjorklund <db@zigo.dhs.org>)
Responses Re: lastval()
Re: lastval()
List pgsql-patches
Dennis Bjorklund <db@zigo.dhs.org> writes:
> Here is a small patch that implements a function lastval() that
> works just like currval() except that it give the current
> value of the last sequence used by nextval().

Why is that a good idea?  In a complex application it'd be awfully easy
to break logic that depends on such a thing.

            regards, tom lane

pgsql-patches by date:

Previous
From: Dennis Bjorklund
Date:
Subject: lastval()
Next
From: Kris Jurka
Date:
Subject: Re: Blob .getBytes position should start at 1