Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> I have been meaning to move the UNION stuff into the rewrite system
> where it belongs, but haven't had time to do it. In tcop/postgres.c,
> you will see me moving through the union nodes. That should be done at
> the top of the rewrite system. At the time, the rewrite system was so
> confusing to me, I did not attempt it. I believe that will fix the
> problem. Let me know if you need me to do it.
Well, I could give it a shot, but I'm just as happy to defer to you;
I don't know anything about the rewriter and might break something.
regards, tom lane