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

Commit 53e99f5

Browse files
committed
Make an editorial pass over the newly SGML-ified contrib documentation.
Fix lots of bad markup, bad English, bad explanations. This commit covers only about half the contrib modules, but I grow weary...
1 parent a37a0a4 commit 53e99f5

21 files changed

+3538
-2918
lines changed

doc/src/sgml/adminpack.sgml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/adminpack.sgml,v 1.3 2007/12/06 04:12:09 tgl Exp $ -->
2+
13
<sect1 id="adminpack">
24
<title>adminpack</title>
3-
5+
46
<indexterm zone="adminpack">
57
<primary>adminpack</primary>
68
</indexterm>
79

810
<para>
9-
adminpack is a PostgreSQL standard module that implements a number of
10-
support functions which pgAdmin and other administration and management tools
11-
can use to provide additional functionality if installed on a server.
11+
<filename>adminpack</> provides a number of support functions which
12+
<application>pgAdmin</> and other administration and management tools can
13+
use to provide additional functionality, such as remote management
14+
of server log files.
1215
</para>
1316

1417
<sect2>
1518
<title>Functions implemented</title>
19+
1620
<para>
17-
Functions implemented by adminpack can only be run by a superuser. Here's a
18-
list of these functions:
19-
</para>
20-
<para>
21-
<programlisting>
22-
int8 pg_catalog.pg_file_write(fname text, data text, append bool)
23-
bool pg_catalog.pg_file_rename(oldname text, newname text, archivname text)
24-
bool pg_catalog.pg_file_rename(oldname text, newname text)
25-
bool pg_catalog.pg_file_unlink(fname text)
26-
setof record pg_catalog.pg_logdir_ls()
27-
28-
/* Renaming of existing backend functions for pgAdmin compatibility */
29-
int8 pg_catalog.pg_file_read(fname text, data text, append bool)
30-
bigint pg_catalog.pg_file_length(text)
31-
int4 pg_catalog.pg_logfile_rotate()
32-
</programlisting>
21+
The functions implemented by <filename>adminpack</> can only be run by a
22+
superuser. Here's a list of these functions:
23+
24+
<programlisting>
25+
int8 pg_catalog.pg_file_write(fname text, data text, append bool)
26+
bool pg_catalog.pg_file_rename(oldname text, newname text, archivename text)
27+
bool pg_catalog.pg_file_rename(oldname text, newname text)
28+
bool pg_catalog.pg_file_unlink(fname text)
29+
setof record pg_catalog.pg_logdir_ls()
30+
31+
/* Renaming of existing backend functions for pgAdmin compatibility */
32+
int8 pg_catalog.pg_file_read(fname text, data text, append bool)
33+
bigint pg_catalog.pg_file_length(text)
34+
int4 pg_catalog.pg_logfile_rotate()
35+
</programlisting>
3336
</para>
37+
3438
</sect2>
3539

3640
</sect1>

doc/src/sgml/btree-gist.sgml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,56 @@
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/btree-gist.sgml,v 1.4 2007/12/06 04:12:09 tgl Exp $ -->
2+
13
<sect1 id="btree-gist">
24
<title>btree_gist</title>
3-
5+
46
<indexterm zone="btree-gist">
57
<primary>btree_gist</primary>
68
</indexterm>
79

810
<para>
9-
btree_gist is a B-Tree implementation using GiST that supports the int2, int4,
10-
int8, float4, float8 timestamp with/without time zone, time
11-
with/without time zone, date, interval, oid, money, macaddr, char,
12-
varchar/text, bytea, numeric, bit, varbit and inet/cidr types.
11+
<filename>btree_gist</> provides sample GiST operator classes that
12+
implement B-Tree equivalent behavior for the data types
13+
<type>int2</>, <type>int4</>, <type>int8</>, <type>float4</>,
14+
<type>float8</>, <type>numeric</>, <type>timestamp with time zone</>,
15+
<type>timestamp without time zone</>, <type>time with time zone</>,
16+
<type>time without time zone</>, <type>date</>, <type>interval</>,
17+
<type>oid</>, <type>money</>, <type>char</>,
18+
<type>varchar</>, <type>text</>, <type>bytea</>, <type>bit</>,
19+
<type>varbit</>, <type>macaddr</>, <type>inet</>, and <type>cidr</>.
20+
</para>
21+
22+
<para>
23+
In general, these operator classes will not outperform the equivalent
24+
standard btree index methods, and they lack one major feature of the
25+
standard btree code: the ability to enforce uniqueness. However,
26+
they are useful for GiST testing and as a base for developing other
27+
GiST operator classes.
1328
</para>
1429

1530
<sect2>
1631
<title>Example usage</title>
17-
<programlisting>
18-
CREATE TABLE test (a int4);
19-
-- create index
20-
CREATE INDEX testidx ON test USING gist (a);
21-
-- query
22-
SELECT * FROM test WHERE a &lt; 10;
23-
</programlisting>
32+
33+
<programlisting>
34+
CREATE TABLE test (a int4);
35+
-- create index
36+
CREATE INDEX testidx ON test USING gist (a);
37+
-- query
38+
SELECT * FROM test WHERE a &lt; 10;
39+
</programlisting>
40+
2441
</sect2>
25-
42+
2643
<sect2>
2744
<title>Authors</title>
45+
2846
<para>
29-
All work was done by Teodor Sigaev (<email>teodor@stack.net</email>) ,
30-
Oleg Bartunov (<email>oleg@sai.msu.su</email>), Janko Richter
31-
(<email>jankorichter@yahoo.de</email>). See
32-
<ulink url="http://www.sai.msu.su/~megera/postgres/gist"></ulink> for additional
33-
information.
47+
Teodor Sigaev (<email>teodor@stack.net</email>) ,
48+
Oleg Bartunov (<email>oleg@sai.msu.su</email>), and
49+
Janko Richter (<email>jankorichter@yahoo.de</email>). See
50+
<ulink url="http://www.sai.msu.su/~megera/postgres/gist"></ulink>
51+
for additional information.
3452
</para>
53+
3554
</sect2>
3655

3756
</sect1>

doc/src/sgml/chkpass.sgml

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,60 @@
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/chkpass.sgml,v 1.2 2007/12/06 04:12:09 tgl Exp $ -->
2+
13
<sect1 id="chkpass">
2-
<title>chkpass</title>
3-
4-
<!--
4+
<title>chkpass</title>
5+
56
<indexterm zone="chkpass">
67
<primary>chkpass</primary>
78
</indexterm>
8-
-->
9+
910
<para>
10-
chkpass is a password type that is automatically checked and converted upon
11-
entry. It is stored encrypted. To compare, simply compare against a clear
11+
This module implements a data type <type>chkpass</> that is
12+
designed for storing encrypted passwords.
13+
Each password is automatically converted to encrypted form upon entry,
14+
and is always stored encrypted. To compare, simply compare against a clear
1215
text password and the comparison function will encrypt it before comparing.
13-
It also returns an error if the code determines that the password is easily
14-
crackable. This is currently a stub that does nothing.
1516
</para>
1617

1718
<para>
18-
Note that the chkpass data type is not indexable.
19-
<!--
20-
I haven't worried about making this type indexable. I doubt that anyone
21-
would ever need to sort a file in order of encrypted password.
22-
-->
19+
There are provisions in the code to report an error if the password is
20+
determined to be easily crackable. However, this is currently just
21+
a stub that does nothing.
2322
</para>
2423

2524
<para>
26-
If you precede the string with a colon, the encryption and checking are
27-
skipped so that you can enter existing passwords into the field.
25+
If you precede an input string with a colon, it is assumed to be an
26+
already-encrypted password, and is stored without further encryption.
27+
This allows entry of previously-encrypted passwords.
2828
</para>
2929

3030
<para>
3131
On output, a colon is prepended. This makes it possible to dump and reload
32-
passwords without re-encrypting them. If you want the password (encrypted)
33-
without the colon then use the raw() function. This allows you to use the
32+
passwords without re-encrypting them. If you want the encrypted password
33+
without the colon then use the <function>raw()</> function.
34+
This allows you to use the
3435
type with things like Apache's Auth_PostgreSQL module.
3536
</para>
3637

3738
<para>
38-
The encryption uses the standard Unix function crypt(), and so it suffers
39+
The encryption uses the standard Unix function <function>crypt()</>,
40+
and so it suffers
3941
from all the usual limitations of that function; notably that only the
4042
first eight characters of a password are considered.
4143
</para>
4244

4345
<para>
44-
Here is some sample usage:
46+
Note that the chkpass data type is not indexable.
47+
<!--
48+
I haven't worried about making this type indexable. I doubt that anyone
49+
would ever need to sort a file in order of encrypted password.
50+
-->
4551
</para>
4652

47-
<programlisting>
53+
<para>
54+
Sample usage:
55+
</para>
56+
57+
<programlisting>
4858
test=# create table test (p chkpass);
4959
CREATE TABLE
5060
test=# insert into test values ('hello');
@@ -72,13 +82,14 @@ test=# select p = 'goodbye' from test;
7282
----------
7383
f
7484
(1 row)
75-
</programlisting>
85+
</programlisting>
7686

7787
<sect2>
7888
<title>Author</title>
89+
7990
<para>
80-
D'Arcy J.M. Cain <email>darcy@druid.net</email>
91+
D'Arcy J.M. Cain (<email>darcy@druid.net</email>)
8192
</para>
8293
</sect2>
83-
</sect1>
8494

95+
</sect1>

0 commit comments

Comments
 (0)