@@ -2641,18 +2641,9 @@ SELECT merge_db(1, 'dennis');
2641
2641
expected.
2642
2642
</para>
2643
2643
</example>
2644
- </sect2>
2645
-
2646
- <sect2 id="plpgsql-diagnostics">
2647
- <title>Getting Diagnostics Information</title>
2648
-
2649
- <indexterm>
2650
- <primary>diagnostics</primary>
2651
- <secondary>in PL/pgSQL</secondary>
2652
- </indexterm>
2653
2644
2654
2645
<sect3 id="plpgsql-exception-diagnostics">
2655
- <title>Obtaining information about an error </title>
2646
+ <title>Obtaining Information About an Error </title>
2656
2647
2657
2648
<para>
2658
2649
Exception handlers frequently need to identify the specific error that
@@ -2686,7 +2677,7 @@ GET STACKED DIAGNOSTICS <replaceable>variable</replaceable> { = | := } <replacea
2686
2677
</para>
2687
2678
2688
2679
<table id="plpgsql-exception-diagnostics-values">
2689
- <title>Error diagnostics values </title>
2680
+ <title>Error Diagnostics Values </title>
2690
2681
<tgroup cols="3">
2691
2682
<thead>
2692
2683
<row>
@@ -2704,17 +2695,17 @@ GET STACKED DIAGNOSTICS <replaceable>variable</replaceable> { = | := } <replacea
2704
2695
<row>
2705
2696
<entry><literal>COLUMN_NAME</literal></entry>
2706
2697
<entry>text</entry>
2707
- <entry>the name of column related to exception</entry>
2698
+ <entry>the name of the column related to exception</entry>
2708
2699
</row>
2709
2700
<row>
2710
2701
<entry><literal>CONSTRAINT_NAME</literal></entry>
2711
2702
<entry>text</entry>
2712
- <entry>the name of constraint related to exception</entry>
2703
+ <entry>the name of the constraint related to exception</entry>
2713
2704
</row>
2714
2705
<row>
2715
2706
<entry><literal>PG_DATATYPE_NAME</literal></entry>
2716
2707
<entry>text</entry>
2717
- <entry>the name of data type related to exception</entry>
2708
+ <entry>the name of the data type related to exception</entry>
2718
2709
</row>
2719
2710
<row>
2720
2711
<entry><literal>MESSAGE_TEXT</literal></entry>
@@ -2724,12 +2715,12 @@ GET STACKED DIAGNOSTICS <replaceable>variable</replaceable> { = | := } <replacea
2724
2715
<row>
2725
2716
<entry><literal>TABLE_NAME</literal></entry>
2726
2717
<entry>text</entry>
2727
- <entry>the name of table related to exception</entry>
2718
+ <entry>the name of the table related to exception</entry>
2728
2719
</row>
2729
2720
<row>
2730
2721
<entry><literal>SCHEMA_NAME</literal></entry>
2731
2722
<entry>text</entry>
2732
- <entry>the name of schema related to exception</entry>
2723
+ <entry>the name of the schema related to exception</entry>
2733
2724
</row>
2734
2725
<row>
2735
2726
<entry><literal>PG_EXCEPTION_DETAIL</literal></entry>
@@ -2773,17 +2764,16 @@ END;
2773
2764
</programlisting>
2774
2765
</para>
2775
2766
</sect3>
2767
+ </sect2>
2776
2768
2777
- <sect3 id="plpgsql-get-diagnostics-context">
2778
- <title>Obtaining the call stack context information</title>
2779
-
2780
- <para>
2769
+ <sect2 id="plpgsql-get-diagnostics-context">
2770
+ <title>Obtaining the Call Stack Context Information</title>
2781
2771
2782
2772
<synopsis>
2783
2773
GET <optional> CURRENT </optional> DIAGNOSTICS <replaceable>variable</replaceable> { = | := } <replaceable>PG_CONTEXT</replaceable> <optional> , ... </optional>;
2784
2774
</synopsis>
2785
2775
2786
-
2776
+ <para>
2787
2777
Calling <command>GET DIAGNOSTICS</command> with status
2788
2778
item <varname>PG_CONTEXT</> will return a text string with line(s) of
2789
2779
text describing the call stack. The first row refers to the
@@ -2820,7 +2810,6 @@ PL/pgSQL function outer_func() line 3 at RETURN
2820
2810
</programlisting>
2821
2811
2822
2812
</para>
2823
- </sect3>
2824
2813
</sect2>
2825
2814
</sect1>
2826
2815
@@ -3567,7 +3556,7 @@ RAISE unique_violation USING MESSAGE = 'Duplicate user ID: ' || user_id;
3567
3556
</indexterm>
3568
3557
3569
3558
<sect2 id="plpgsql-dml-trigger">
3570
- <title>Triggers on data changes </title>
3559
+ <title>Triggers on Data Changes </title>
3571
3560
3572
3561
<para>
3573
3562
<application>PL/pgSQL</application> can be used to define trigger
@@ -4119,7 +4108,7 @@ SELECT * FROM sales_summary_bytime;
4119
4108
</sect2>
4120
4109
4121
4110
<sect2 id="plpgsql-event-trigger">
4122
- <title>Triggers on events </title>
4111
+ <title>Triggers on Events </title>
4123
4112
4124
4113
<para>
4125
4114
<application>PL/pgSQL</application> can be used to define event
@@ -4712,7 +4701,7 @@ a_output := a_output || $$ if v_$$ || referrer_keys.kind || $$ like '$$
4712
4701
4713
4702
</sect2>
4714
4703
<sect2 id="plpgsql-extra-checks">
4715
- <title>Additional compile -time checks </title>
4704
+ <title>Additional Compile -time Checks </title>
4716
4705
4717
4706
<para>
4718
4707
To aid the user in finding instances of simple but common problems before
0 commit comments