pgsql: Remove precedence labeling of keywords TRUE, FALSE, UNKNOWN, and

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Remove precedence labeling of keywords TRUE, FALSE, UNKNOWN, and
Дата
Msg-id E1QI94m-0003ar-8t@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove precedence labeling of keywords TRUE, FALSE, UNKNOWN, and ZONE.

These were labeled with precedences just to avoid attaching explicit
precedences to the productions in which they were the last terminal symbol.
Since a terminal symbol precedence marking can affect many other things
too, it seems like better practice to attach precedence labels to the
productions, and not mark the terminal symbols.

Ideally we'd also remove the precedence attached to NULL_P, but it turns
out that we are actually depending on that having a precedence higher than
POSTFIXOP, else we get a shift/reduce conflict for postfix operators in
b_expr.  (Which more or less proves my point about these markings having a
high risk of unexpected consequences.)  For the moment, move NULL_P into
the set of keywords grouped with IDENT, so that at least it will act
similarly to non-keywords; and document the interaction.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/12b7164578e73abb065a835c588c1e0c44670ed3

Modified Files
--------------
src/backend/parser/gram.y |   27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Unbreak the regression tests from my previous commit
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Move RegisterPredicateLockingXid() call to a safer place.