Hello
per proposal http://archives.postgresql.org/pgsql-hackers/2007-11/msg01012.php
This patch allows iteration over cursor, so longer SELECTs can bewritten outside cycle. Clean some related redundant code too.
RegardsPavel Stehule