Re: lastval()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: lastval()
Date: 2005-05-08 22:36:49
Message-ID: 13945.1115591809@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Dennis Bjorklund <db(at)zigo(dot)dhs(dot)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

In response to

  • lastval() at 2005-05-08 17:00:15 from Dennis Bjorklund

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew - Supernews 2005-05-08 22:41:09 Re: Views, views, views! (long)
Previous Message Palle Girgensohn 2005-05-08 22:31:26 Re: Patch for collation using ICU

Browse pgsql-patches by date

  From Date Subject
Next Message Kris Jurka 2005-05-08 23:20:09 Re: Blob .getBytes position should start at 1
Previous Message Dennis Bjorklund 2005-05-08 17:00:15 lastval()