Minor tweaks for PL/PgSQL documentation.
authorNeil Conway
Thu, 6 Oct 2005 20:51:20 +0000 (20:51 +0000)
committerNeil Conway
Thu, 6 Oct 2005 20:51:20 +0000 (20:51 +0000)
doc/src/sgml/plpgsql.sgml

index a447dc8f1ebf4ec1d6b8719ebb1d70cb95be47e3..af8f476f790e7fdc93f50f04844338e11964ba4b 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -1593,9 +1593,10 @@ SELECT * FROM some_func();
        allow users to define set-returning functions
        that do not have this limitation.  Currently, the point at
        which data begins being written to disk is controlled by the
-       work_mem configuration variable.  Administrators
-       who have sufficient memory to store larger result sets in
-       memory should consider increasing this parameter.
+       
+       configuration variable.  Administrators who have sufficient
+       memory to store larger result sets in memory should consider
+       increasing this parameter.
       
      
     
@@ -2122,14 +2123,13 @@ END;
     
 
     
-     The condition names can be any of those
-     shown in .  A category name matches
-     any error within its category.
-     The special condition name OTHERS
-     matches every error type except QUERY_CANCELED.
-     (It is possible, but often unwise, to trap
-     QUERY_CANCELED by name.)
-     Condition names are not case-sensitive.
+     The condition names can be any of
+     those shown in .  A category
+     name matches any error within its category.  The special
+     condition name OTHERS matches every error type except
+     QUERY_CANCELED.  (It is possible, but often unwise,
+     to trap QUERY_CANCELED by name.)  Condition names are
+     not case-sensitive.
     
 
     
@@ -2188,15 +2188,16 @@ END;
     
 
     
-    Exceptions with <span class="marked">UPDATE/INSERT</span>
+    Exceptions with <span class="marked"><command>UPDATE</>/<command>INSERT</></span>
     
-    This example uses an EXCEPTION to UPDATE or
-    INSERT, as appropriate.
+
+    This example uses exception handling to perform either
+    UPDATE or INSERT, as appropriate.
 
 
 CREATE TABLE db (a INT PRIMARY KEY, b TEXT);
 
-CREATE FUNCTION merge_db (key INT, data TEXT) RETURNS VOID AS
+CREATE FUNCTION merge_db(key INT, data TEXT) RETURNS VOID AS
 $$
 BEGIN
     LOOP
@@ -2216,8 +2217,8 @@ END;
 $$
 LANGUAGE plpgsql;
 
-SELECT merge_db (1, 'david');
-SELECT merge_db (1, 'dennis');
+SELECT merge_db(1, 'david');
+SELECT merge_db(1, 'dennis');