[COMMITTERS] pgsql: Fix YA unwanted behavioral difference withoperator_precedence_w

Поиск
Список
Период
Сортировка
От Tom Lane
Тема [COMMITTERS] pgsql: Fix YA unwanted behavioral difference withoperator_precedence_w
Дата
Msg-id E1ce5VB-0005NV-Hn@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix YA unwanted behavioral difference with operator_precedence_warning.

Jeff Janes noted that the error cursor position shown for some errors
would vary when operator_precedence_warning is turned on.  We'd prefer
that option to have no undocumented effects, so this isn't desirable.
To fix, make sure that an AEXPR_PAREN node has the same exprLocation
as its child node.

(Note: it would be a little cheaper to use @2 here instead of an
exprLocation call, but there are cases where that wouldn't produce
the identical answer, so don't do it like that.)

Back-patch to 9.5 where this feature was introduced.

Discussion: https://postgr.es/m/CAMkU=1ykK+VhhcQ4Ky8KBo9FoaUJH3f3rDQB8TkTXi-ZsBRUkQ@mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8350aae4f18a158980c17f56c39a707f4ac168cc

Modified Files
--------------
src/backend/parser/gram.y | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: [COMMITTERS] pgsql: Add optimizer and executor support for parallel index scans.
Следующее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Fix tab completion for "ALTER SYSTEM SET variable ...".