Re: usring CURSORS within functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: usring CURSORS within functions
Дата
Msg-id 3792.1006112595@sss.pgh.pa.us
обсуждение исходный текст
Ответ на usring CURSORS within functions  ("SunMie Won" <sunmiewon@yahoo.com>)
Список pgsql-general
"SunMie Won" <sunmiewon@yahoo.com> writes:
> Any tips on how to use a cursor within a function?

You don't, at least not before 7.2.  The 7.2 support for cursors
in plpgsql is documented in the development docs:
http://candle.pha.pa.us/main/writings/pgsql/sgml/plpgsql-cursors.html
I don't really know why the syntax is what it is; it's a tad odd and
not anything like the normal SQL DECLARE x CURSOR.  Possibly Jan
borrowed it from Oracle.

            regards, tom lane

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

Предыдущее
От: "SunMie Won"
Дата:
Сообщение: usring CURSORS within functions
Следующее
От: Sharon Cowling
Дата:
Сообщение: Problem with type in rule