diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index e3b03f7004..91fadb0f14 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -2641,18 +2641,9 @@ SELECT merge_db(1, 'dennis'); expected. - - - - Getting Diagnostics Information - - - diagnostics - in PL/pgSQL - - Obtaining information about an error + Obtaining Information About an Error Exception handlers frequently need to identify the specific error that @@ -2686,7 +2677,7 @@ GET STACKED DIAGNOSTICS variable { = | := } - Error diagnostics values + Error Diagnostics Values @@ -2704,17 +2695,17 @@ GET STACKED DIAGNOSTICS variable { = | := } COLUMN_NAME text - the name of column related to exception + the name of the column related to exception CONSTRAINT_NAME text - the name of constraint related to exception + the name of the constraint related to exception PG_DATATYPE_NAME text - the name of data type related to exception + the name of the data type related to exception MESSAGE_TEXT @@ -2724,12 +2715,12 @@ GET STACKED DIAGNOSTICS variable { = | := } TABLE_NAME text - the name of table related to exception + the name of the table related to exception SCHEMA_NAME text - the name of schema related to exception + the name of the schema related to exception PG_EXCEPTION_DETAIL @@ -2773,17 +2764,16 @@ END; + - - Obtaining the call stack context information - - + + Obtaining the Call Stack Context Information GET CURRENT DIAGNOSTICS variable { = | := } PG_CONTEXT , ... ; - + Calling GET DIAGNOSTICS with status item PG_CONTEXT will return a text string with line(s) of text describing the call stack. The first row refers to the @@ -2820,7 +2810,6 @@ PL/pgSQL function outer_func() line 3 at RETURN - @@ -3567,7 +3556,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id; - Triggers on data changes + Triggers on Data Changes PL/pgSQL can be used to define trigger @@ -4119,7 +4108,7 @@ SELECT * FROM sales_summary_bytime; - Triggers on events + Triggers on Events PL/pgSQL can be used to define event @@ -4712,7 +4701,7 @@ a_output := a_output || $$ if v_$$ || referrer_keys.kind || $$ like '$$ - Additional compile-time checks + Additional Compile-time Checks To aid the user in finding instances of simple but common problems before