@@ -45,7 +45,48 @@ PostgreSQL documentation
4545 </para>
4646 </refsect1>
4747
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">
4990 <title>Options</title>
5091
5192 <variablelist>
623664 </refsect1>
624665
625666
626- <refsect1>
667+ <refsect1 id="app-psql-exitstatus" xreflabel="Exit Status" >
627668 <title>Exit Status</title>
628669
629670 <para>
@@ -636,10 +677,10 @@ EOF
636677 </refsect1>
637678
638679
639- <refsect1>
680+ <refsect1 id="app-psql-usage" xreflabel="Usage" >
640681 <title>Usage</title>
641682
642- <refsect2 id="r2-app-psql-connecting">
683+ <refsect2 id="r2-app-psql-connecting" xreflabel="Connecting to a Database" >
643684 <title>Connecting to a Database</title>
644685
645686 <para>
@@ -712,7 +753,7 @@ $ <userinput>psql postgresql://dbmaster:5433/mydb?sslmode=require</userinput>
712753 </para>
713754 </refsect2>
714755
715- <refsect2 id="r2-app-psql-4">
756+ <refsect2 id="r2-app-psql-4" xreflabel="Entering SQL Commands" >
716757 <title>Entering SQL Commands</title>
717758
718759 <para>
@@ -764,7 +805,7 @@ testdb=>
764805 </para>
765806 </refsect2>
766807
767- <refsect2 id="app-psql-meta-commands">
808+ <refsect2 id="app-psql-meta-commands" xreflabel="Meta-Commands" >
768809 <title>Meta-Commands</title>
769810
770811 <para>
@@ -4161,7 +4202,7 @@ SELECT 1\; SELECT 2\; SELECT 3;
41614202 </refsect3>
41624203 </refsect2>
41634204
4164- <refsect2>
4205+ <refsect2 id="app-psql-advanced" xreflabel="Advanced Features" >
41654206 <title>Advanced Features</title>
41664207
41674208 <refsect3 id="app-psql-variables" xreflabel="Variables">
@@ -5206,7 +5247,7 @@ testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# '
52065247
52075248 </refsect3>
52085249
5209- <refsect3 id="app-psql-readline">
5250+ <refsect3 id="app-psql-readline" xreflabel="Command-Line Editing" >
52105251 <title>Command-Line Editing</title>
52115252
52125253 <indexterm>
@@ -5449,7 +5490,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
54495490 </refsect1>
54505491
54515492
5452- <refsect1>
5493+ <refsect1 id="app-psql-files" xreflabel="Files" >
54535494 <title>Files</title>
54545495
54555496 <variablelist>
@@ -5520,7 +5561,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
55205561 </refsect1>
55215562
55225563
5523- <refsect1>
5564+ <refsect1 id="app-psql-notes" xreflabel="Notes" >
55245565 <title>Notes</title>
55255566
55265567 <itemizedlist>
@@ -5567,7 +5608,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
55675608 </refsect1>
55685609
55695610
5570- <refsect1>
5611+ <refsect1 id="app-psql-noteswindows" xreflabel="Notes for Windows Users" >
55715612 <title>Notes for Windows Users</title>
55725613
55735614 <para>
0 commit comments