Hello,
this small patch add missing USING clause to OPEN FOR EXECUTE statement+ cleaning part of exec_stmt_open function
see http://archives.postgresql.org/pgsql-hackers/2009-11/msg00713.php
RegardsPavel Stehule