Re: support for NEXT VALUE FOR expression

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: support for NEXT VALUE FOR expression
Date: 2016-08-17 03:52:50
Message-ID: 17890.1471405970@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)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

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

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2016-08-17 04:10:57 Re: support for NEXT VALUE FOR expression
Previous Message Peter Eisentraut 2016-08-17 03:35:29 support for NEXT VALUE FOR expression