Re: 8.4b1: Query returning results in different order to 8.3 - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: 8.4b1: Query returning results in different order to 8.3
Date
Msg-id 49EAD50E.8020207@enterprisedb.com
Whole thread Raw
In response to Re: 8.4b1: Query returning results in different order to 8.3  (Greg Stark <stark@enterprisedb.com>)
List pgsql-hackers
Greg Stark wrote:
> UNION ALL should still preserve the order of the subqueries. It just
> returns all the rows of each subquery one after the other with no
> other work.

Although without an ORDER BY that's not well-defined and thus not 
guaranteed to work in future versions either. I doubt we're going to 
change that anytime soon, but I wouldn't rely on it in an application.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: [PATCH] unalias of ACL_SELECT_FOR_UPDATE
Next
From: Heikki Linnakangas
Date:
Subject: Re: [PATCH] unalias of ACL_SELECT_FOR_UPDATE