@@ -45,7 +45,48 @@ PostgreSQL documentation
45
45
</para>
46
46
</refsect1>
47
47
48
- <refsect1 id="r1-app-psql-3">
48
+ <refsect1 id="app-psql-toc">
49
+ <title>Table of Contents</title>
50
+ <itemizedlist>
51
+ <listitem><para><xref linkend="r1-app-psql-3"/></para></listitem>
52
+ <listitem><para><xref linkend="app-psql-exitstatus"/></para></listitem>
53
+ <listitem>
54
+ <para><xref linkend="app-psql-usage"/></para>
55
+ <para>
56
+ <itemizedlist>
57
+ <listitem><para><xref linkend="r2-app-psql-connecting"/></para></listitem>
58
+ <listitem><para><xref linkend="r2-app-psql-4"/></para></listitem>
59
+ <listitem>
60
+ <para><xref linkend="app-psql-meta-commands"/></para>
61
+ <para>
62
+ <itemizedlist>
63
+ <listitem><para><xref linkend="app-psql-patterns"/></para></listitem>
64
+ </itemizedlist>
65
+ </para>
66
+ </listitem>
67
+ <listitem>
68
+ <para><xref linkend="app-psql-advanced"/></para>
69
+ <para>
70
+ <itemizedlist>
71
+ <listitem><para><xref linkend="app-psql-variables"/></para></listitem>
72
+ <listitem><para><xref linkend="app-psql-interpolation"/></para></listitem>
73
+ <listitem><para><xref linkend="app-psql-prompting"/></para></listitem>
74
+ <listitem><para><xref linkend="app-psql-readline"/></para></listitem>
75
+ </itemizedlist>
76
+ </para>
77
+ </listitem>
78
+ </itemizedlist>
79
+ </para>
80
+ </listitem>
81
+ <listitem><para><xref linkend="app-psql-environment"/></para></listitem>
82
+ <listitem><para><xref linkend="app-psql-files"/></para></listitem>
83
+ <listitem><para><xref linkend="app-psql-notes"/></para></listitem>
84
+ <listitem><para><xref linkend="app-psql-noteswindows"/></para></listitem>
85
+ <listitem><para><xref linkend="app-psql-examples"/></para></listitem>
86
+ </itemizedlist>
87
+ </refsect1>
88
+
89
+ <refsect1 id="r1-app-psql-3" xreflabel="Command-Line Options">
49
90
<title>Options</title>
50
91
51
92
<variablelist>
623
664
</refsect1>
624
665
625
666
626
- <refsect1>
667
+ <refsect1 id="app-psql-exitstatus" xreflabel="Exit Status" >
627
668
<title>Exit Status</title>
628
669
629
670
<para>
@@ -636,10 +677,10 @@ EOF
636
677
</refsect1>
637
678
638
679
639
- <refsect1>
680
+ <refsect1 id="app-psql-usage" xreflabel="Usage" >
640
681
<title>Usage</title>
641
682
642
- <refsect2 id="r2-app-psql-connecting">
683
+ <refsect2 id="r2-app-psql-connecting" xreflabel="Connecting to a Database" >
643
684
<title>Connecting to a Database</title>
644
685
645
686
<para>
@@ -712,7 +753,7 @@ $ <userinput>psql postgresql://dbmaster:5433/mydb?sslmode=require</userinput>
712
753
</para>
713
754
</refsect2>
714
755
715
- <refsect2 id="r2-app-psql-4">
756
+ <refsect2 id="r2-app-psql-4" xreflabel="Entering SQL Commands" >
716
757
<title>Entering SQL Commands</title>
717
758
718
759
<para>
@@ -764,7 +805,7 @@ testdb=>
764
805
</para>
765
806
</refsect2>
766
807
767
- <refsect2 id="app-psql-meta-commands">
808
+ <refsect2 id="app-psql-meta-commands" xreflabel="Meta-Commands" >
768
809
<title>Meta-Commands</title>
769
810
770
811
<para>
@@ -4131,7 +4172,7 @@ select 1\; select 2\; select 3;
4131
4172
</refsect3>
4132
4173
</refsect2>
4133
4174
4134
- <refsect2>
4175
+ <refsect2 id="app-psql-advanced" xreflabel="Advanced Features" >
4135
4176
<title>Advanced Features</title>
4136
4177
4137
4178
<refsect3 id="app-psql-variables" xreflabel="Variables">
@@ -5148,7 +5189,7 @@ testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# '
5148
5189
5149
5190
</refsect3>
5150
5191
5151
- <refsect3 id="app-psql-readline">
5192
+ <refsect3 id="app-psql-readline" xreflabel="Command-Line Editing" >
5152
5193
<title>Command-Line Editing</title>
5153
5194
5154
5195
<indexterm>
@@ -5391,7 +5432,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
5391
5432
</refsect1>
5392
5433
5393
5434
5394
- <refsect1>
5435
+ <refsect1 id="app-psql-files" xreflabel="Files" >
5395
5436
<title>Files</title>
5396
5437
5397
5438
<variablelist>
@@ -5462,7 +5503,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
5462
5503
</refsect1>
5463
5504
5464
5505
5465
- <refsect1>
5506
+ <refsect1 id="app-psql-notes" xreflabel="Notes" >
5466
5507
<title>Notes</title>
5467
5508
5468
5509
<itemizedlist>
@@ -5509,7 +5550,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
5509
5550
</refsect1>
5510
5551
5511
5552
5512
- <refsect1>
5553
+ <refsect1 id="app-psql-noteswindows" xreflabel="Notes for Windows Users" >
5513
5554
<title>Notes for Windows Users</title>
5514
5555
5515
5556
<para>
0 commit comments