pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gmb <gmbouwer@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: UNNEST result order vs Array data
Date: Thu, 20 Jun 2013 05:13:14 -0700 (PDT)
Message-ID: <1371730394987-5760106.post@n5.nabble.com> (raw)
In-Reply-To: <51C2E995.3070407@archonet.com>
References: <1371724857304-5760087.post@n5.nabble.com>
	<51C2DD42.4000002@dalibo.com>
	<51C2E441.4020200@matrix.gatewaynet.com>
	<51C2E995.3070407@archonet.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>


>> An array is ordered. If you turn it into a relation then it isn't 
>> ordered any more until you apply ORDER BY.
>>
>> An unnest() will almost certainly scan the array in-order, but once you 
>> embed that in a large query the ordering is no longer guaranteed.

Thanks, I assumed as much. Appreciate your help.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/UNNEST-result-order-vs-Array-data-tp5760087p5760106.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (9+ messages)  latest in thread

Message-ID: <1371730394987-5760106.post@n5.nabble.com>
Permalink:  ../1371730394987-5760106.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1371730394987-5760106.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gmbouwer@gmail.com
  Subject: Re: UNNEST result order vs Array data
  In-Reply-To: <1371730394987-5760106.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox