Re: 8.4b1: Query returning results in different order to 8.3

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Greg Stark <stark(at)enterprisedb(dot)com>
Cc: Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Ian Barwick <barwick(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.4b1: Query returning results in different order to 8.3
Date: 2009-04-19 07:38:54
Message-ID: 49EAD50E.8020207@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2009-04-19 07:41:26 Re: [PATCH] unalias of ACL_SELECT_FOR_UPDATE
Previous Message Brendan Jurd 2009-04-19 05:12:09 to_timestamp() changes in 8.4 release notes