Re: PLpgSQL: list of scalars as row for assign stmt, fore and fors stm

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: PLpgSQL: list of scalars as row for assign stmt, fore and fors stm
Дата
Msg-id BAY20-F2301EBABA30700C408681EF93E0@phx.gbl
обсуждение исходный текст
Ответ на Re: PLpgSQL: list of scalars as row for assign stmt, fore and fors stms  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
>
>"Pavel Stehule" <pavel.stehule@hotmail.com> writes:
> >     x, y := r;
>
>That strikes me as a really bad idea.  It weakens both syntax and
>semantic error checking, to accomplish how much?
>

It's same as select into or execute into (using same code). And behave is
like row variable := row variable. I am not sure if it's good idea. But it's
can be usefull when you have out variables and you have to fill them. There
are not control for count of arguments, but types are checked.

I can understand so this topic is little bit controvers. And maybe we don't
need this statements, if we have this possibility in fore and fors stmts.

Regards
Pavel Stehule

_________________________________________________________________
Emotikony a pozadi programu MSN Messenger ozivi vasi konverzaci.
http://messenger.msn.cz/


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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: COPY LOCK for WAL bypass
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: PLpgSQL: list of scalars as row for assign stmt, fore and fors stm