From 663476919c9f14c07bc367e564c62fca1e1ef0fe Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Thu, 6 Oct 2005 20:51:20 +0000 Subject: [PATCH] Minor tweaks for PL/PgSQL documentation. --- doc/src/sgml/plpgsql.sgml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index a447dc8f1e..af8f476f79 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -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 UPDATE/INSERT + Exceptions with <command>UPDATE</>/<command>INSERT</> - 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'); -- 2.40.0