strange order by behavior - Mailing list pgsql-bugs

From Jeffrey Melloy
Subject strange order by behavior
Date
Msg-id 4199A4C6.8060305@visualdistortion.org
Whole thread Raw
Responses Re: strange order by behavior
List pgsql-bugs
I've run across a bug with order by:

select 1 as a order by a;
 -- works

select 1 as a, 2 as b order by a;
 -- works

select 1 as a, 2 as b order by a + b;
ERROR: column "a" does not exist

select * from (select 1 as a, 2 as b) stuff order by a + b;
 -- works

pgsql-bugs by date:

Previous
From: "Karl O. Pinc"
Date:
Subject: Re: pg_dumpall (7.3) 'public' schema bug
Next
From: Mindaugas Kvedaravičius
Date:
Subject: I found some kind of bug