Any way to use refcursors from python?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Any way to use refcursors from python?
Date: 2010-12-29 12:46:40
Message-ID: 20101229123507.GA88799@shinkuro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

For a little application I'm working on (written in Python), I have a
number of potentially large result sets that I'd like to return from a
PL/pgSQL function. My natural inclination would be to return a
refcursor. It seems, however, that psycopg2 can't accept such
references.

Have I completely overlooked something (there would be no news in
that, of course)? Is there some other interface I ought to be using?

Thanks,

A

--
Andrew Sullivan
ajs(at)crankycanuck(dot)ca

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniele Varrazzo 2010-12-29 14:05:26 Re: Any way to use refcursors from python?
Previous Message Leif Biberg Kristensen 2010-12-29 12:34:39 Re: Restore problem