Re: WIP: updatable cursors in plpgsql

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: WIP: updatable cursors in plpgsql
Дата
Msg-id 162867790706110752h4883744bg5a02bf25de8c806c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WIP: updatable cursors in plpgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: WIP: updatable cursors in plpgsql
Список pgsql-patches
2007/6/11, Tom Lane <tgl@sss.pgh.pa.us>:
> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
> > this small patch allows using updatable cursors in plpgsql.
>
> Why do we need this?
>
For stored procedures. Updatable cursors are used mainly in transform
procedures, and without suppport in plpgsql, you have to write
external procedure. It similar with support scrollable cursors, which
was added into plpgsql now. It's not strong argument. With this patch
will be less diference between cursors supported by PostgreSQL and
cursors in plpgsql.

Updatable cursor are currently substituted using ctid, but updatable
cursors are more clean and readable.

PL/pgSQL can be consistent in support PostgreSQL SQL statements. It's
little bit strange, PostgreSQL offer some functionality, which cannot
be used from PL/pgSQL.

Regards
Pavel Stehule

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: WIP: updatable cursors in plpgsql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WIP: updatable cursors in plpgsql