Re: UNION syntax different for 7.1.2 - Mailing list pgsql-general

From Tom Lane
Subject Re: UNION syntax different for 7.1.2
Date
Msg-id 24667.995566296@sss.pgh.pa.us
Whole thread Raw
In response to UNION syntax different for 7.1.2  ("Vilson farias" <vilson.farias@digitro.com.br>)
List pgsql-general
"Vilson farias" <vilson.farias@digitro.com.br> writes:
> from 7.0.2 to 7.0.3, the following script works fine, but in 7.1.2 I
> must remove the rr. from ORDER BY clause.

Yup.  That's an intentional change.  The ORDER BY applies to the output
columns of the UNION, not to whatever tables might have been referenced
in the arms of the UNION.

            regards, tom lane

pgsql-general by date:

Previous
From: Ed Loehr
Date:
Subject: Re: UNION syntax different for 7.1.2
Next
From: Tom Lane
Date:
Subject: Re: many tables in db