Re: How to unnest an array with element indexes

Поиск
Список
Период
Сортировка
От AlexK
Тема Re: How to unnest an array with element indexes
Дата
Msg-id 1392843342351-5792787.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: How to unnest an array with element indexes  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: How to unnest an array with element indexes  (Pavel Stehule <pavel.stehule@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to unnest an array with element indexes
Следующее
От: AlexK
Дата:
Сообщение: Re: How to unnest an array with element indexes