Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UpcIb-0003F7-Vf for pgsql-sql@arkaria.postgresql.org; Thu, 20 Jun 2013 10:41:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UpcIb-0002Y5-F4 for pgsql-sql@arkaria.postgresql.org; Thu, 20 Jun 2013 10:41:05 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UpcIa-0002Xy-Du for pgsql-sql@postgresql.org; Thu, 20 Jun 2013 10:41:04 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UpcIU-0006f9-83 for pgsql-sql@postgresql.org; Thu, 20 Jun 2013 10:41:03 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UpcIT-0008KC-Ds for pgsql-sql@postgresql.org; Thu, 20 Jun 2013 03:40:57 -0700 Date: Thu, 20 Jun 2013 03:40:57 -0700 (PDT) From: gmb To: pgsql-sql@postgresql.org Message-ID: <1371724857304-5760087.post@n5.nabble.com> Subject: UNNEST result order vs Array data MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 3.6 (+++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hi all I just want to confirm something regarding UNNEST function used with arrays. I cannot see that it is specifically mentioned in the documentation , but maybe because it is obvious. Is the order of the result guaranteed to be the order of the array I.e. is it possible that: SELECT UNNEST( ARRAY[1,2,3] ) will sometimes return: unnest -------- 2 1 3 (3 rows) instead of: unnest -------- 1 2 3 (3 rows) Help will be appreciated -- View this message in context: http://postgresql.1045698.n5.nabble.com/UNNEST-result-order-vs-Array-data-tp5760087.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