Named Cursors WITH HOLD

Поиск
Список
Период
Сортировка
От deavid
Тема Named Cursors WITH HOLD
Дата
Msg-id CAFR-75vbcTVTrze4Vyf7P8RoALfvdRTJOPh+kQ9Z_ZoTQff2Zw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Named Cursors WITH HOLD  (Federico Di Gregorio <federico.digregorio@dndg.it>)
Re: Named Cursors WITH HOLD  (Federico Di Gregorio <federico.digregorio@dndg.it>)
Список 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 по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Custom array types converter
Следующее
От: Federico Di Gregorio
Дата:
Сообщение: Re: Named Cursors WITH HOLD