agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: AlexK <alkuzo@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to unnest an array with element indexes
Date: Wed, 19 Feb 2014 12:55:42 -0800 (PST)
Message-ID: <1392843342351-5792787.post@n5.nabble.com> (raw)
In-Reply-To: <CAFj8pRDRzVNJcbqomgNNCOcriJe_BmuxPPny1fm1tOr7BzPqKQ@mail.gmail.com>
References: <1392837956043-5792770.post@n5.nabble.com>
<1392838343105-5792771.post@n5.nabble.com>
<1392839868185-5792774.post@n5.nabble.com>
<CAFj8pRDRzVNJcbqomgNNCOcriJe_BmuxPPny1fm1tOr7BzPqKQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Pavel,
This works for me, thank you!
Presumably foreach is guaranteed to iterate array elements in order: "The
elements are visited in storage order, regardless of the number of array
dimensions", quoted from this:
http://www.postgresql.org/docs/9.2/static/plpgsql-control-structures.html
Since parallelism is coming up, will this behavior stay as documented? My
arrays are as big as 20K-30K elements, maybe more.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-unnest-an-array-with-element-indexes-tp5792770p579278...
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 (8+ messages) latest in thread
Message-ID: <1392843342351-5792787.post@n5.nabble.com>
Permalink: ../1392843342351-5792787.post@n5.nabble.com/
Also on: postgresql.org/message-id/1392843342351-5792787.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: alkuzo@gmail.com
Subject: Re: How to unnest an array with element indexes
In-Reply-To: <1392843342351-5792787.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox