Re: Support plpgsql multi-range in conditional control
От | Pavel Stehule |
---|---|
Тема | Re: Support plpgsql multi-range in conditional control |
Дата | |
Msg-id | CAFj8pRBQVLWG5bg9=8BV+NsE3osgMemGT1pU5ffHBa6BP_H8fA@mail.gmail.com обсуждение исходный текст |
Ответ на | Support plpgsql multi-range in conditional control ("2903807914@qq.com" <2903807914@qq.com>) |
Ответы |
Re: Support plpgsql multi-range in conditional control
|
Список | pgsql-hackers |
Hi
Dear hackers, my good friend Hou Jiaxing and I have implemented a version of the code that supports multiple integer range conditions in the in condition control of the for loop statement in the plpgsql procedural language. A typical example is as follows:postgres=# do $$declarei int := 10;beginfor i in 1..10 by 3, reverse i+10..i+1 by 3 loopraise info '%', i;end loop;end $$;INFO: 1INFO: 4INFO: 7INFO: 10INFO: 20INFO: 17INFO: 14INFO: 11dopostgres=#Hope to get your feedback, thank you!
I don't like it. The original design of ADA language is to be a safe and simple language. Proposed design is in 100% inversion.
What use case it should to support?
Regards
Pavel
В списке pgsql-hackers по дате отправления: