Re: Remove useless associativity/precedence from parsers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Remove useless associativity/precedence from parsers
Date
Msg-id 3028.1558290425@sss.pgh.pa.us
Whole thread Raw
In response to Remove useless associativity/precedence from parsers  (Akim Demaille <akim@lrde.epita.fr>)
Responses Re: Remove useless associativity/precedence from parsers  (Akim Demaille <akim@lrde.epita.fr>)
List pgsql-hackers
Akim Demaille <akim@lrde.epita.fr> writes:
> In the following two proposed patches, I remove directives that are
> completely useless.

I'm far from convinced that the proposed changes in gram.y are a good
idea.  Both [] and . (field selection) *are* left-associative in a
meaningful sense, so even if this change happens not to affect what
Bison does, I think the declarations are good documentation.  Would
you have us also change the user documentation at
https://www.postgresql.org/docs/devel/sql-syntax-lexical.html#SQL-PRECEDENCE
?

I haven't looked at the jsonpath grammar closely enough to have an
opinion about that one.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Multivariate MCV stats can leak data to unprivileged users
Next
From: Andres Freund
Date:
Subject: Re: Statistical aggregate functions are not working with PARTIALaggregation