Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> There are other rules that have a %prec on the rule itself, does that not work
> here? *off to read the fine manual now*
No, the decision is driven by comparing the precedence of the rule to
that of the input token, so you need precedences on both to resolve
an ambiguous situation.
regards, tom lane