Re: lastval() - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: lastval()
Date
Msg-id 200505110150.j4B1oOM15896@candle.pha.pa.us
Whole thread Raw
In response to Re: lastval()  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway wrote:
> Dennis Bjorklund wrote:
> > 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().
>
> What do people think of this idea? (Tom seems opposed, I'm just
> wondering if there are other opinions out there.)

I like the idea of lastval, though I would rather see us just use
currval() with no argument for it, rather than invent a new function
name.  It does the same as currval('last sequence called') right?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: pgstat: reduce message header
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: lastval()