Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)
Дата
Msg-id 180.1292600858@sss.pgh.pa.us
обсуждение исходный текст
Ответ на proposal: FOREACH-IN-ARRAY (probably for 9.2?)  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)
Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I am resending a redesigned proposal about special plpgsql statement
> that support iteration over an array.

OK ...

> == Iteration over multidimensional arrays ==
> Its designed to reduce one dimension from source array. It can remove
> a slicing and simplify code:

This seems like a really bad, confusing idea.  I think it should throw
a type-mismatch error in this case.  If there is any use-case for such a
thing, which I'm quite unconvinced of, it ought to use a separate syntax
rather than overloading the element-by-element syntax.
        regards, tom lane


В списке pgsql-hackers по дате отправления: