| От | Daniel Wood |
|---|---|
| Тема | WITH HOLD ref cursors for plpgsql |
| Дата | |
| Msg-id | 5122D838.1050208@salesforce.com обсуждение исходный текст |
| Ответы |
Re: WITH HOLD ref cursors for plpgsql
|
| Список | pgsql-novice |
I believe that WITH HOLD cursors was once on a TODO list for plpgsql along with scrollable cursors. When scrollable cursors was implemented, but not WITH HOLD, it was dropped from the TODO list. Robert Haas mentioned in: http://www.postgresql.org/message-id/AANLkTikjVF6bENfxv-et75g-vHnRyy0y0B+og6BprhgQ@mail.gmail.com that "...it's not really clear what WITH HOLD would do for you." It makes some sense given that procedures don't support commit/rollback. However, you might want to return a ref cursor and it certainly might be useful to have as a with hold cursor. It seems that independent of the issue of support for transactions in plpgsql we should support with hold cursors.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера