On 05/23/2011 06:44
AM, Michael McInnis wrote: I've seen numerous references to this syntax but haven't found where you issue the command.You have to run it as a plpythonu function as in: create function test() returns int as $$ rv=plpy.execute("SELECT * FROM my_table", 5) for row in rv: do something return 1 $$ langauge 'plpythonu'; |