I wrote:
> Gurjeet Singh <gurjeet(at)singh(dot)im> writes:
>> I tried to eliminate the 'pending' list, but I don't see a way around it.
>> We need temporary storage somewhere to store the branches encountered on
>> the right; in recursion case the call stack was serving that purpose.
> I still think we should fix this in the grammar, rather than introducing
> complicated logic to try to get rid of the recursion later. For example,
> as attached.
I went looking for (and found) some additional obsoleted comments, and
convinced myself that ruleutils.c is okay as-is, and pushed this.
regards, tom lane