Looping the result set in plpythonu - Mailing list pgsql-admin

From Allan Kamau
Subject Looping the result set in plpythonu
Date
Msg-id 170171.66203.qm@web53506.mail.re2.yahoo.com
Whole thread Raw
List pgsql-admin
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

pgsql-admin by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: off-topic - list files on linux
Next
From: Allan Kamau
Date:
Subject: implementation of plpythonu resultset (are cursors used?)