]> granicus.if.org Git - postgresql/blobdiff - doc/src/sgml/plpgsql.sgml
Plpgsql doc cleanup.
[postgresql] / doc / src / sgml / plpgsql.sgml
index 185dc3eaf8d16868fb212ed0afa461f0a890ddc3..4acac7366d92407c1588643158d4caa512cbae84 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.118 2007/11/28 15:42:31 petere Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.119 2007/11/28 20:13:06 momjian Exp $ -->
 
 <chapter id="plpgsql"> 
   <title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title>
 
     <para>
      <application>PL/pgSQL</> functions can also be declared to return
-     a <quote>set</>, or table, of any data type they can return a single
-     instance of.  Such a function generates its output by executing
-     <command>RETURN NEXT</> for each desired element of the result
+     a <quote>set</>, or table.  Such a function generates its output by
+     executing <command>RETURN NEXT</> for each desired element of the result
      set, or by using <command>RETURN QUERY</> to output the result of
      evaluating a query.
     </para>
@@ -1428,7 +1427,7 @@ BEGIN
     WHERE fooid &gt; 0
     LOOP
         -- can do some processing here
-        RETURN NEXT r; -- return next row of SELECT
+        RETURN NEXT r; -- return current row of SELECT
     END LOOP;
     RETURN;
 END