From: Allan Kamau <kamauallan@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Looping the result set in plpythonu
Date: Thu, 27 Mar 2008 01:21:30 -0700 (PDT)
Message-ID: <170171.66203.qm@web53506.mail.re2.yahoo.com> (raw)
Hi all,
Am having trouble finding a way to loop through the records (one by one) of the resultset returned by plpy.execute("myquery") statement.
Please show me a a few lines of the looping and how to terminate the loop once no more records are found.
Allan.
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: kamauallan@yahoo.com
Subject: Re: Looping the result set in plpythonu
In-Reply-To: <170171.66203.qm@web53506.mail.re2.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox