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

From Tom Lane
Subject Re: support for NEXT VALUE FOR expression
Date
Msg-id 19795.1471408322@sss.pgh.pa.us
Whole thread Raw
In response to support for NEXT VALUE FOR expression  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
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.

BTW, several of the earlier threads complained of needing to make NEXT
a fully-reserved word in order to get this to parse without shift/reduce
conflicts.  How did you avoid that?  I notice that your patch puts the
new production into c_expr not func_expr_common_subexpr which would
seem like the obvious place.  If that is what's making the difference
it seems rather fragile, and it would mean that NEXT VALUE FOR doesn't
act like a function in some syntactic contexts like a FROM-function.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: support for NEXT VALUE FOR expression
Next
From: Venkata B Nagothi
Date:
Subject: Re: patch proposal