Re: [HACKERS] operator_precedence_warning vs make installcheck

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] operator_precedence_warning vs make installcheck
Дата
Msg-id 28618.1487188031@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] operator_precedence_warning vs make installcheck  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] operator_precedence_warning vs make installcheck  (Jeff Janes <jeff.janes@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Should we cacheline align PGXACT?
Следующее
От: Claudio Freire
Дата:
Сообщение: Re: [HACKERS] Sum aggregate calculation for single precsion real