Skip to content

Commit f9d45c4

Browse files
poloboCommitfest Bot
authored andcommitted
doc: add local TOC to psql reference page
1 parent ca38912 commit f9d45c4

File tree

1 file changed

+52
-11
lines changed

1 file changed

+52
-11
lines changed

doc/src/sgml/ref/psql-ref.sgml

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
@@ -623,7 +664,7 @@ EOF
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=&gt;
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>
@@ -4131,7 +4172,7 @@ select 1\; select 2\; select 3;
41314172
</refsect3>
41324173
</refsect2>
41334174

4134-
<refsect2>
4175+
<refsect2 id="app-psql-advanced" xreflabel="Advanced Features">
41354176
<title>Advanced Features</title>
41364177

41374178
<refsect3 id="app-psql-variables" xreflabel="Variables">
@@ -5148,7 +5189,7 @@ testdb=&gt; \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# '
51485189

51495190
</refsect3>
51505191

5151-
<refsect3 id="app-psql-readline">
5192+
<refsect3 id="app-psql-readline" xreflabel="Command-Line Editing">
51525193
<title>Command-Line Editing</title>
51535194

51545195
<indexterm>
@@ -5391,7 +5432,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
53915432
</refsect1>
53925433

53935434

5394-
<refsect1>
5435+
<refsect1 id="app-psql-files" xreflabel="Files">
53955436
<title>Files</title>
53965437

53975438
<variablelist>
@@ -5462,7 +5503,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
54625503
</refsect1>
54635504

54645505

5465-
<refsect1>
5506+
<refsect1 id="app-psql-notes" xreflabel="Notes">
54665507
<title>Notes</title>
54675508

54685509
<itemizedlist>
@@ -5509,7 +5550,7 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
55095550
</refsect1>
55105551

55115552

5512-
<refsect1>
5553+
<refsect1 id="app-psql-noteswindows" xreflabel="Notes for Windows Users">
55135554
<title>Notes for Windows Users</title>
55145555

55155556
<para>

0 commit comments

Comments
 (0)