Re: MOVE in SQL vs PLPGSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MOVE in SQL vs PLPGSQL
Дата
Msg-id 19176.1128526984@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: MOVE in SQL vs PLPGSQL  (Richard Huxton <dev@archonet.com>)
Ответы Re: MOVE in SQL vs PLPGSQL  (Greg Stark <gsstark@mit.edu>)
Список pgsql-sql
Richard Huxton <dev@archonet.com> writes:
> Ah, now I see what you're saying. You're quite right in your suspicions, 
> "MOVE..." isn't supported for plpgsql cursors. You could probably do 
> something with EXECUTE and returning a refcursor from a previous 
> function, but that sounds fiddly.

> I must admit, on the odd occasion I want to skip a row, I just FETCH it 
> and move on. Anyone else?

There is something on the TODO list about improving plpgsql's cursor
functionality --- there's no reason it shouldn't have MOVE, except that
no one got around to it yet.
        regards, tom lane


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

Предыдущее
От: "codeWarrior"
Дата:
Сообщение: Re: using pg_tables and tablename in queries
Следующее
От: Kenneth Gonsalves
Дата:
Сообщение: Re: BirthDay SQL Issue