Re: [HACKERS] operator_precedence_warning vs make installcheck - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] operator_precedence_warning vs make installcheck
Date
Msg-id 28618.1487188031@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] operator_precedence_warning vs make installcheck  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] operator_precedence_warning vs make installcheck  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
I wrote:
> We could possibly prevent the difference by having exprLocation look
> through such nodes.  I'm not sure offhand if there are cases where
> that would be worse than before.  We've definitely made some other
> hacks to hide the difference between operator_precedence_warning on
> and off.

After some study I concluded the best fix is just to make the AEXPR_PAREN
node have the same reportable location as its child node to begin with.
None of the code dealing with precedence errors was using the location
of the left parenthesis, so there's no good reason to store that.

Pushed a fix along that line.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Should we cacheline align PGXACT?
Next
From: Claudio Freire
Date:
Subject: Re: [HACKERS] Sum aggregate calculation for single precsion real