Re: support for NEXT VALUE FOR expression - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: support for NEXT VALUE FOR expression
Date
Msg-id CAEepm=2X=rrkthuDA6i+B+tpBgtkFaAWTpKYss-k0ixusRBJrg@mail.gmail.com
Whole thread Raw
In response to Re: support for NEXT VALUE FOR expression  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: support for NEXT VALUE FOR expression  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Aug 17, 2016 at 3:52 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> Here is a patch for implementing the NEXT VALUE FOR expression.  This is
>> the SQL-standard conforming version of our nextval() function, and it's
>> also used by Oracle, MS SQL, DB2.  Example:
>
> We discussed this before and concluded that NEXT VALUE FOR is in fact
> *not* an exact semantic equivalent of nextval():
>
> https://www.postgresql.org/message-id/14790.1083955136%40sss.pgh.pa.us

And also again 10 years later when I proposed it :-)


https://www.postgresql.org/message-id/flat/CADLWmXUY2oo4XObQWF3yPUSK%3D5uEiSV%3DeTyLrnu%3DRzteOy%2B3Lg%40mail.gmail.com

> I remain of the opinion that using spec-compliant syntax for
> non-spec-compliant behavior isn't a great advance.

-- 
Thomas Munro
http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: support for NEXT VALUE FOR expression
Next
From: Tom Lane
Date:
Subject: Re: support for NEXT VALUE FOR expression