Plpgsql doc cleanup.
authorBruce Momjian
Wed, 28 Nov 2007 20:13:06 +0000 (20:13 +0000)
committerBruce Momjian
Wed, 28 Nov 2007 20:13:06 +0000 (20:13 +0000)
Guillaume Lelarge

doc/src/sgml/plpgsql.sgml

index 185dc3eaf8d16868fb212ed0afa461f0a890ddc3..4acac7366d92407c1588643158d4caa512cbae84 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
  
   <application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language
 
     
      PL/pgSQL functions can also be declared to return
-     a set, or table, of any data type they can return a single
-     instance of.  Such a function generates its output by executing
-     RETURN NEXT for each desired element of the result
+     a set, or table.  Such a function generates its output by
+     executing RETURN NEXT for each desired element of the result
      set, or by using RETURN QUERY to output the result of
      evaluating a query.
     
@@ -1428,7 +1427,7 @@ BEGIN
     WHERE fooid > 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