Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UpcbZ-0004N4-5X for pgsql-sql@arkaria.postgresql.org; Thu, 20 Jun 2013 11:00:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UpcbY-0000e0-H8 for pgsql-sql@arkaria.postgresql.org; Thu, 20 Jun 2013 11:00:40 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UpcbX-0000du-Qj for pgsql-sql@postgresql.org; Thu, 20 Jun 2013 11:00:39 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UpcbR-00072J-LH for pgsql-sql@postgresql.org; Thu, 20 Jun 2013 11:00:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UpcbR-0000fx-7R for pgsql-sql@postgresql.org; Thu, 20 Jun 2013 04:00:33 -0700 Date: Thu, 20 Jun 2013 04:00:33 -0700 (PDT) From: gmb To: pgsql-sql@postgresql.org Message-ID: <1371726033207-5760092.post@n5.nabble.com> In-Reply-To: <51C2DD42.4000002@dalibo.com> References: <1371724857304-5760087.post@n5.nabble.com> <51C2DD42.4000002@dalibo.com> Subject: Re: 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 Vik Thanks for the reply. Can you please give me an example of how the order is specified? I want the result of the UNNEST to be in the order of the array field E.g. SELECT UNNEST ( ARRAY[ 'abc' , 'ggh' , '12aa' , '444f' ] ); Should always return: unnest -------- abc ggh 12aa 444f How should the ORDER BY be implemented in the syntax? Regards -- View this message in context: http://postgresql.1045698.n5.nabble.com/UNNEST-result-order-vs-Array-data-tp5760087p5760092.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