*** pgsql.old/doc/src/sgml/plpgsql.sgml 2005-04-19 05:55:43.000000000 +0200 --- pgsql.new/doc/src/sgml/plpgsql.sgml 2005-06-01 19:28:51.000000000 +0200 *************** *** 1251,1263 **** EXECUTE statement is provided: ! EXECUTE command-string; where command-string is an expression yielding a string (of type text) containing the command to be executed. This string is fed literally to the SQL engine. --- 1251,1265 ---- EXECUTE statement is provided: ! EXECUTE command-string [INTO record_or_row]; where command-string is an expression yielding a string (of type text) containing the command to be executed. This string is fed literally to the SQL engine. + record_or_row is any record or row variable. + INTO record_or_row clause is optional. *************** *** 1277,1291 **** The results from SELECT commands are discarded ! by EXECUTE, and SELECT INTO is not currently supported within EXECUTE. - So there is no way to extract a result from a dynamically-created - SELECT using the plain EXECUTE - command. There are two other ways to do it, however: one is to use the - FOR-IN-EXECUTE - loop form described in , - and the other is to use a cursor with OPEN-FOR-EXECUTE, as - described in . --- 1279,1287 ---- The results from SELECT commands are discarded ! by EXECUTE if don't use clause INTO. ! SELECT INTO is not currently supported within EXECUTE.