Henson Choi <assam258(at)gmail(dot)com> writes:
> When the target of an UPDATE, DELETE or MERGE in a rule or in a
> BEGIN ATOMIC function body has the alias "set", ruleutils.c prints
> the alias bare, and the text no longer parses. The two attached
> patches add tests and fix it.
Another good catch, but here again I find your solution
overcomplicated and perhaps not very future-proof. Let's just
emit AS all the time in these statements.
regards, tom lane