[HACKERS] merging some features from plpgsql2 project
От | Pavel Stehule |
---|---|
Тема | [HACKERS] merging some features from plpgsql2 project |
Дата | |
Msg-id | CAFj8pRBQ3zhckkv4TW7jzOb3igfO_0_g_nn6K252Yed6+wJM4Q@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: [HACKERS] merging some features from plpgsql2 project
Re: [HACKERS] merging some features from plpgsql2 project Re: [HACKERS] merging some features from plpgsql2 project |
Список | pgsql-hackers |
Some points are well and can be benefit for PlpgSQL.
First I describe my initial position. I am strongly against introduction "new" language - plpgsql2 or new plpgsql, or any else. The trust of developers to us is important and introduction of any not compatible or different feature has to have really big reason. PostgreSQL is conservative environment, and PLpgSQL should not be a exception. More - I have not any information from my customers, colleagues about missing features in this language. If there is some gaps, then it is in outer environment - IDE, deployment, testing,* SELECT .. INTO vs. TOO_MANY_ROWS - can be implemented as extra check
* SELECT .. INTO and the number of result columns - good extra check too
* EXECUTE and FOUND - this is incompatible change, extra check can be used (test on unset variable). I see solution in leaving FOUND variable and introduction of some new without this issue - ROW_COUNT maybe (this is another possible incompatible change, but with higher benefit - maybe we can introduce some aliasing, PRAGMA clause, default PRAGMAs, ..).
* SELECT .. INTO and := - looks bizarre, but I see clean benefit and I can accept it
* The OUT namespace and OUT parameter visibility - I don't like it - not in this form - can we introduce some form of namespace aliasing? The arguments are in function name named namespace already.
В списке pgsql-hackers по дате отправления: