Re: How to unnest an array with element indexes - Mailing list pgsql-sql

From AlexK
Subject Re: How to unnest an array with element indexes
Date
Msg-id 1392843342351-5792787.post@n5.nabble.com
Whole thread Raw
In response to Re: How to unnest an array with element indexes  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: How to unnest an array with element indexes
List pgsql-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-tp5792770p5792787.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to unnest an array with element indexes
Next
From: AlexK
Date:
Subject: Re: How to unnest an array with element indexes