Bruce Momjian <bruce(at)momjian(dot)us> writes:> Well, it can be an expression _if_ the expression _matches_ an existing> UNION column.
You're mistaken. It has to be *an output column name*. Not anything else.
regards, tom lane