"Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM> writes:
> vac=# select x from tryam union select x from tryam order by length(x);
> ERROR: Attribute 'x' not found
The UNION code doesn't support ordering by resjunk attributes, and never
has (but 7.1 at least knows it can't do it ;-)). Something to fix when
we redesign querytrees.
regards, tom lane