Cursors and recursion

Поиск
Список
Период
Сортировка
От Don Croata
Тема Cursors and recursion
Дата
Msg-id be9533860512280629m1c1163bm73fef37f17541423@mail.gmail.com
обсуждение исходный текст
Ответы Re: Cursors and recursion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi,
 
I've been trying to do recursion and cursors in PL/PgSQL (PostgreSQL 8.1). It's a function who has a cursor and calls itself, but the problem raises after the first recursion, when PgSQL complains:
 
ERROR:  cursor "cur" already in use
 
Are the cursors kept globally? or cached like TEMP TABLE?
 
There's an example code available in http://www.croata.cl/cur.sql . In fact, it is an abstraction of the real stored procedure where the problem occurs.
 
--
 
Thanks in advance,
Cro
 

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

Предыдущее
От: elein
Дата:
Сообщение: Re: "large" IN/NOT IN subqueries result in query returning wrong data
Следующее
От: J Crypter
Дата:
Сообщение: instead of trigger in pg