Named Cursor Basics

Поиск
Список
Период
Сортировка
Искать
От
maplabs@light42.com
Тема
Named Cursor Basics
Дата
в 17:52:20
Msg-id
20110519165211.3fg43tllf4sk0www@webmail.light42.com
Список
Дерево обсуждения
Named Cursor Basics maplabs@light42.com
Re: Named Cursor Basics Federico Di Gregorio <federico.digregorio@dndg.it>
Hi All-

  thanks for the re-invigoration of psycopg2.. looking forward to
great things..

I have a big, big table, and I want to iterate through each record once. I am
not clear on using named cursor and pages though..

  I tried a simple example late last night, and it iterated twice
then stopped.
Today, after a bit more reading, I tried again in the interactive
shell, but got

   OperationalError: cursor "tmp" does not exist

There is something I am missing.. this is so fundemental.. 
executing a select * on the table with a non-named cursor does not appear
to be an option..

  I have psycopg2 2.4.1 built from source and installed on linux. Pg 9

  thanks 
   -Brian


В списке psycopg по дате отправления
От: Daniele Varrazzo
Дата:
От: Federico Di Gregorio
Дата:
Сообщение: Re: Named Cursor Basics
FAQ