Named Cursors WITH HOLD

Поиск
Список
Период
Сортировка
От deavid
Тема Named Cursors WITH HOLD
Дата
Msg-id CAFR-75vbcTVTrze4Vyf7P8RoALfvdRTJOPh+kQ9Z_ZoTQff2Zw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Named Cursors WITH HOLD
Re: Named Cursors WITH HOLD
Список psycopg
Hi, i'm using psycopg and i'm noticing that Named Cursors are being
deleted by PostgreSQL whenever i do a commit. This is the default
behaviour specified in [1], but there is a parameter when creating a
cursor called "WITH HOLD" that allows a cursor outside any
transaction.

But i can't see any way in the psycopg API to do this. Maybe a cursor
factory, but I've no idea on how to do it.

[1]: http://www.postgresql.org/docs/current/static/sql-declare.html

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