Named Cursor Basics - Mailing list psycopg

From maplabs@light42.com
Subject Named Cursor Basics
Date
Msg-id 20110519165211.3fg43tllf4sk0www@webmail.light42.com
Whole thread Raw
Responses Re: Named Cursor Basics  (Federico Di Gregorio <federico.digregorio@dndg.it>)
List psycopg
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 by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Trouble installing psycopg2 on Mac OSX 10.6
Next
From: Federico Di Gregorio
Date:
Subject: Re: Named Cursor Basics