Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c882e0

Browse files
committed
Split contrib documentation into extensions and programs
Create separate appendixes for contrib extensions and other server plugins on the one hand, and utility programs on the other. Recast the documentation of the latter as refentries, so that man pages are generated.
1 parent 4f69603 commit 1c882e0

11 files changed

+597
-361
lines changed

doc/src/sgml/contrib.sgml

Lines changed: 79 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Additional Supplied Modules</title>
55

66
<para>
7-
This appendix contains information regarding the modules that
7+
This appendix and the next one contain information regarding the modules that
88
can be found in the <literal>contrib</literal> directory of the
99
<productname>PostgreSQL</> distribution.
1010
These include porting tools, analysis utilities,
@@ -15,7 +15,13 @@
1515
</para>
1616

1717
<para>
18-
When building from the source distribution, these modules are not built
18+
This appendix covers extensions and other server plug-in modules found in
19+
<literal>contrib</literal>. <xref linkend="contrib-prog"> covers utility
20+
programs.
21+
</para>
22+
23+
<para>
24+
When building from the source distribution, these components are not built
1925
automatically, unless you build the "world" target
2026
(see <xref linkend="build">).
2127
You can build and install all of them by running:
@@ -88,6 +94,14 @@ CREATE EXTENSION <replaceable>module_name</> FROM unpackaged;
8894
<xref linkend="extend-extensions">.
8995
</para>
9096

97+
<para>
98+
Note, however, that some of these modules are not <quote>extensions</quote>
99+
in this sense, but are loaded into the server in some other way, for instance
100+
by way of
101+
<xref linkend="guc-shared-preload-libraries">. See the documentation of each
102+
module for details.
103+
</para>
104+
91105
&adminpack;
92106
&auth-delay;
93107
&auto-explain;
@@ -109,22 +123,15 @@ CREATE EXTENSION <replaceable>module_name</> FROM unpackaged;
109123
&isn;
110124
&lo;
111125
&ltree;
112-
&oid2name;
113126
&pageinspect;
114127
&passwordcheck;
115-
&pgarchivecleanup;
116-
&pgbench;
117128
&pgbuffercache;
118129
&pgcrypto;
119130
&pgfreespacemap;
120131
&pgrowlocks;
121-
&pgstandby;
122132
&pgstatstatements;
123133
&pgstattuple;
124-
&pgtestfsync;
125-
&pgtesttiming;
126134
&pgtrgm;
127-
&pgupgrade;
128135
&seg;
129136
&sepgsql;
130137
&contrib-spi;
@@ -135,7 +142,69 @@ CREATE EXTENSION <replaceable>module_name</> FROM unpackaged;
135142
&tsearch2;
136143
&unaccent;
137144
&uuid-ossp;
138-
&vacuumlo;
139145
&xml2;
140146

141147
</appendix>
148+
149+
<!--
150+
These are two separate appendixes because it is difficult to mix regular
151+
sections (for extensions) and refentries (for programs) in one chapter or
152+
appendix. And we do want the programs as refentries so that we can produce man
153+
pages.
154+
-->
155+
156+
<appendix id="contrib-prog">
157+
<title>Additional Supplied Programs</title>
158+
159+
<para>
160+
This appendix and the previous one contain information regarding the modules that
161+
can be found in the <literal>contrib</literal> directory of the
162+
<productname>PostgreSQL</> distribution. See <xref linkend="contrib"> for
163+
more information about the <literal>contrib</literal> section in general and
164+
server extensions and plug-ins found in <literal>contrib</literal>
165+
specifically.
166+
</para>
167+
168+
<para>
169+
This appendix covers utility programs found in <literal>contrib</literal>.
170+
Once installed, either from source or a packaging system, they are found in
171+
the <filename>bin</filename> directory of the
172+
<productname>PostgreSQL</productname> installation and can be used like any
173+
other program.
174+
</para>
175+
176+
<sect1 id="contrib-prog-client">
177+
<title>Client Applications</title>
178+
179+
<para>
180+
This section covers <productname>PostgreSQL</productname> client
181+
applications in <literal>contrib</literal>. They can be run from anywhere,
182+
independent of where the database server resides. See
183+
also <xref linkend="reference-client"> for information about client
184+
applications that part of the core <productname>PostgreSQL</productname>
185+
distribution.
186+
</para>
187+
188+
&oid2name;
189+
&pgbench;
190+
&vacuumlo;
191+
</sect1>
192+
193+
<sect1 id="contrib-prog-server">
194+
<title>Server Applications</title>
195+
196+
<para>
197+
This section covers <productname>PostgreSQL</productname> server-related
198+
applications in <literal>contrib</literal>. They are typically run on the
199+
host where the database server resides. See also <xref
200+
linkend="reference-server"> for information about server applications that
201+
part of the core <productname>PostgreSQL</productname> distribution.
202+
</para>
203+
204+
&pgarchivecleanup;
205+
&pgstandby;
206+
&pgtestfsync;
207+
&pgtesttiming;
208+
&pgupgrade;
209+
</sect1>
210+
</appendix>

doc/src/sgml/docguide.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,15 @@ save_size.pdfjadetex = 15000
12401240
</listitem>
12411241
</varlistentry>
12421242

1243+
<varlistentry>
1244+
<term>Author</term>
1245+
<listitem>
1246+
<para>
1247+
Author (only used in the contrib section)
1248+
</para>
1249+
</listitem>
1250+
</varlistentry>
1251+
12431252
<varlistentry>
12441253
<term>See Also</term>
12451254
<listitem>

doc/src/sgml/oid2name.sgml

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
<!-- doc/src/sgml/oid2name.sgml -->
22

3-
<sect1 id="oid2name" xreflabel="oid2name">
4-
<title>oid2name</title>
3+
<refentry id="oid2name">
4+
<refmeta>
5+
<refentrytitle>oid2name</refentrytitle>
6+
<manvolnum>1</manvolnum>
7+
<refmiscinfo>Application</refmiscinfo>
8+
</refmeta>
9+
10+
<refnamediv>
11+
<refname>oid2name</refname>
12+
<refpurpose>resolve OIDs and file nodes in a <productname>PostgreSQL</productname> data directory</refpurpose>
13+
</refnamediv>
514

615
<indexterm zone="oid2name">
716
<primary>oid2name</primary>
817
</indexterm>
918

19+
<refsynopsisdiv>
20+
<cmdsynopsis>
21+
<command>oid2name</command>
22+
<arg rep="repeat"><replaceable>option</replaceable></arg>
23+
</cmdsynopsis>
24+
</refsynopsisdiv>
25+
26+
<refsect1>
27+
<title>Description</title>
28+
1029
<para>
1130
<application>oid2name</> is a utility program that helps administrators to
1231
examine the file structure used by PostgreSQL. To make use of it, you need
@@ -24,19 +43,16 @@
2443
</para>
2544
</note>
2645

27-
<sect2>
28-
<title>Overview</title>
29-
3046
<para>
3147
<application>oid2name</application> connects to a target database and
3248
extracts OID, filenode, and/or table name information. You can also have
3349
it show database OIDs or tablespace OIDs.
3450
</para>
3551

36-
</sect2>
52+
</refsect1>
3753

38-
<sect2>
39-
<title><application>oid2name</> Options</title>
54+
<refsect1>
55+
<title>Options</title>
4056

4157
<para>
4258
<application>oid2name</application> accepts the following command-line arguments:
@@ -142,9 +158,19 @@
142158
OIDs. Alternatively you can give <option>-s</> to get a tablespace
143159
listing.
144160
</para>
145-
</sect2>
161+
</refsect1>
146162

147-
<sect2>
163+
<refsect1>
164+
<title>Notes</title>
165+
166+
<para>
167+
<application>oid2name</> requires a running database server with
168+
non-corrupt system catalogs. It is therefore of only limited use
169+
for recovering from catastrophic database corruption situations.
170+
</para>
171+
</refsect1>
172+
173+
<refsect1>
148174
<title>Examples</title>
149175

150176
<screen>
@@ -265,24 +291,14 @@ From database "alvherre":
265291
----------------------
266292
155156 foo
267293
</screen>
268-
</sect2>
269-
270-
<sect2>
271-
<title>Limitations</title>
272-
273-
<para>
274-
<application>oid2name</> requires a running database server with
275-
non-corrupt system catalogs. It is therefore of only limited use
276-
for recovering from catastrophic database corruption situations.
277-
</para>
278-
</sect2>
294+
</refsect1>
279295

280-
<sect2>
296+
<refsect1>
281297
<title>Author</title>
282298

283299
<para>
284300
B. Palmer <email>bpalmer@crimelabs.net</email>
285301
</para>
286-
</sect2>
302+
</refsect1>
287303

288-
</sect1>
304+
</refentry>

0 commit comments

Comments
 (0)