Remove precedence hacks no longer needed without postfix operators.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Sep 2020 19:11:26 +0000 (15:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 19 Sep 2020 19:11:26 +0000 (15:11 -0400)
commit28a61fc6c58fbfb83e416411f55e7d6ec47279ff
tree356f029040f887b507c8bf393d710400bbc30d2e
parent8354e7b27ebec8bf78088e22b5b9c1caa46db8e1
Remove precedence hacks no longer needed without postfix operators.

It's no longer necessary to assign explicit precedences to GENERATED,
NULL_P, PRESERVE, or STRIP_P.

Actually, we don't need to assign precedence to IDENT either; that was
really just there to govern the behavior of target_el's "a_expr IDENT"
production, which no longer ends with that terminal.  However, it seems
like a good idea to continue to do so, because it provides a reference
point for a precedence level that we can assign to other unreserved
keywords that lack a natural precedence level.

Research by Peter Eisentraut and John Naylor; comment rewrite by me.

Discussion: https://postgr.es/m/38ca86db-42ab-9b48-2902-337a0d6b8311@2ndquadrant.com
src/backend/parser/gram.y