Re: plpgsql cursors : dynamic or static?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: plpgsql cursors : dynamic or static?
Дата
Msg-id 200210231121.00113.josh@agliodbs.com
обсуждение исходный текст
Ответ на plpgsql cursors : dynamic or static?  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Ответы Re: plpgsql cursors : dynamic or static?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Ludwig,

>   Are cursors in plpgsql dynamic or static?
>
>   For example :
>
>   ... /* some code */
>   FOR rec in   SELECT f1,f2
>                FROM table1 WHERE .... LOOP
>
>     /* some codes that manipulate table1 */
>   END LOOP;

Technically speaking, that is not a cursor, even though it serves the same
purpose.

I'm pretty sure it's static, but it would be easy to test ... why don't you
give it a try?

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: eric soroos
Дата:
Сообщение: Re: Hairy question - transpose columns
Следующее
От: Tom Lane
Дата:
Сообщение: Re: plpgsql cursors : dynamic or static?