Re: Proposal: plpgsql - "for in array" statement

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Proposal: plpgsql - "for in array" statement
Дата
Msg-id AANLkTikLiDDTCOU-rUA6gh4ntFvbhd4ZrY1-ova2q_L2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposal: plpgsql - "for in array" statement  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposal: plpgsql - "for in array" statement  ("David E. Wheeler" <david@kineticode.com>)
Re: Proposal: plpgsql - "for in array" statement  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
On Tue, Sep 28, 2010 at 10:34 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Pavel Stehule <pavel.stehule@gmail.com> writes:
>> I looked on some constructs that helps with iteration over array in
>> plpgsql. I propose a following syntax:
>
>> FOR var IN [array variable | array expression]
>> LOOP
>
> I don't have any opinion about whether the functionality proposed here
> is worth the trouble, but I do have an opinion about that syntax: it's
> an awful choice.

I agree, on both points.

It's nice to try to reduce the excess verbosity that is IMHO the
biggest usability issue with PL/pgsql, but I can't help wondering
whether we're trying to dam the Nile with chicken wire.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: plpgsql - "for in array" statement
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: security label support, revised