Re: order by is ambiguous - Mailing list pgsql-general

From Tom Lane
Subject Re: order by is ambiguous
Date
Msg-id 6905.1073574550@sss.pgh.pa.us
Whole thread Raw
In response to order by is ambiguous  (Travel Jadoo <jadoo@xs4all.nl>)
Responses Re: order by is ambiguous
List pgsql-general
Travel Jadoo <jadoo@xs4all.nl> writes:
> I could not find any discussion on this but imho this seems an erroneous
> error occuring now in 7.3.4 (after upgrade from 7.2.3):

> select  null::time, 'test'::varchar as time order by time;
> ERROR:  ORDER BY 'time' is ambiguous

What's erroneous about it?  You have two output columns named 'time'.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optimize query: time of "single * IN(many)" > time of "many * IN(single)"
Next
From: "Eric Freeman"
Date:
Subject: Queries taking a very long time