recapitulation: FOREACH-IN-ARRAY

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема recapitulation: FOREACH-IN-ARRAY
Дата
Msg-id AANLkTimD39qswcrWaYeFfNKuaN_UbkiQ6PZ-m+ob_5pK@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hello

I reread a discus to this topic. It's look like we can to find a
agreement on following syntax:

FOREACH var [,var [..]] [SLICE number] IN expr
LOOP
END LOOP;

In default mode, without keyword SLICE, it will iterate over every
field like "unnest" does. With SLICE keyword, it iterate over nested
arrays. Deep can be chosen. I don't see a reason why the deep should
be a dynamic. There can be a constant.

variable list is used only when item is record or row type.

I am not sure what is better keyword - SLICE or SLICING ?

Regards

Pavel Stehule


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

Предыдущее
От: Sushant Sinha
Дата:
Сообщение: Re: english parser in text search: support for multiple words in the same position
Следующее
От: Magnus Hagander
Дата:
Сообщение: Streaming replication as a separate permissions