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

Commit bbaf9e8

Browse files
committed
Documentation spell checking and markup improvements
1 parent 81a4dcf commit bbaf9e8

20 files changed

+66
-62
lines changed

doc/src/sgml/adminpack.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<entry><type>integer</type></entry>
153153
<entry>
154154
Alternate name for <function>pg_rotate_logfile()</>, but note that it
155-
returns integer 0 or 1 rather than boolean
155+
returns integer 0 or 1 rather than <type>boolean</type>
156156
</entry>
157157
</row>
158158
</tbody>

doc/src/sgml/amcheck.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ ORDER BY c.relpages DESC LIMIT 10;
215215
</listitem>
216216
<listitem>
217217
<para>
218-
Filesystem or storage subsystem faults where checksums happen to
218+
File system or storage subsystem faults where checksums happen to
219219
simply not be enabled.
220220
</para>
221221
<para>
222222
Note that <filename>amcheck</> examines a page as represented in some
223223
shared memory buffer at the time of verification if there is only a
224224
shared buffer hit when accessing the block. Consequently,
225225
<filename>amcheck</> does not necessarily examine data read from the
226-
filesystem at the time of verification. Note that when checksums are
226+
file system at the time of verification. Note that when checksums are
227227
enabled, <filename>amcheck</> may raise an error due to a checksum
228228
failure when a corrupt block is read into a buffer.
229229
</para>

doc/src/sgml/config.sgml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,10 +1908,10 @@ include_dir 'conf.d'
19081908
<listitem>
19091909
<para>
19101910
Whenever more than <varname>bgwriter_flush_after</varname> bytes have
1911-
been written by the bgwriter, attempt to force the OS to issue these
1911+
been written by the background writer, attempt to force the OS to issue these
19121912
writes to the underlying storage. Doing so will limit the amount of
19131913
dirty data in the kernel's page cache, reducing the likelihood of
1914-
stalls when an fsync is issued at the end of a checkpoint, or when
1914+
stalls when an <function>fsync</function> is issued at the end of a checkpoint, or when
19151915
the OS writes data back in larger batches in the background. Often
19161916
that will result in greatly reduced transaction latency, but there
19171917
also are some cases, especially with workloads that are bigger than
@@ -2029,7 +2029,7 @@ include_dir 'conf.d'
20292029
pool of processes established by
20302030
<xref linkend="guc-max-worker-processes">, limited by
20312031
<xref linkend="guc-max-parallel-workers">. Note that the requested
2032-
number of workers may not actually be available at runtime. If this
2032+
number of workers may not actually be available at run time. If this
20332033
occurs, the plan will run with fewer workers than expected, which may
20342034
be inefficient. The default value is 2. Setting this value to 0
20352035
disables parallel query execution.
@@ -2090,7 +2090,7 @@ include_dir 'conf.d'
20902090
been written by a single backend, attempt to force the OS to issue
20912091
these writes to the underlying storage. Doing so will limit the
20922092
amount of dirty data in the kernel's page cache, reducing the
2093-
likelihood of stalls when an fsync is issued at the end of a
2093+
likelihood of stalls when an <function>fsync</function> is issued at the end of a
20942094
checkpoint, or when the OS writes data back in larger batches in the
20952095
background. Often that will result in greatly reduced transaction
20962096
latency, but there also are some cases, especially with workloads
@@ -2270,7 +2270,7 @@ include_dir 'conf.d'
22702270
For reliable recovery when changing <varname>fsync</varname>
22712271
off to on, it is necessary to force all modified buffers in the
22722272
kernel to durable storage. This can be done while the cluster
2273-
is shutdown or while fsync is on by running <command>initdb
2273+
is shutdown or while <varname>fsync</varname> is on by running <command>initdb
22742274
--sync-only</command>, running <command>sync</>, unmounting the
22752275
file system, or rebooting the server.
22762276
</para>
@@ -2700,7 +2700,7 @@ include_dir 'conf.d'
27002700
have been written while performing a checkpoint, attempt to force the
27012701
OS to issue these writes to the underlying storage. Doing so will
27022702
limit the amount of dirty data in the kernel's page cache, reducing
2703-
the likelihood of stalls when an fsync is issued at the end of the
2703+
the likelihood of stalls when an <function>fsync</function> is issued at the end of the
27042704
checkpoint, or when the OS writes data back in larger batches in the
27052705
background. Often that will result in greatly reduced transaction
27062706
latency, but there also are some cases, especially with workloads
@@ -3460,7 +3460,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
34603460
<listitem>
34613461
<para>
34623462
Maximum number of synchronization workers per subscription. This
3463-
parameter controls the amount of paralelism of the initial data copy
3463+
parameter controls the amount of parallelism of the initial data copy
34643464
during the subscription initialization or when new tables are added.
34653465
</para>
34663466
<para>
@@ -7356,7 +7356,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
73567356
limit, while negative values
73577357
mean <xref linkend="guc-max-pred-locks-per-transaction"> divided by
73587358
the absolute value of this setting. The default is -2, which keeps
7359-
the behaviour from previous versions of <productname>PostgreSQL</>.
7359+
the behavior from previous versions of <productname>PostgreSQL</>.
73607360
This parameter can only be set in the <filename>postgresql.conf</>
73617361
file or on the server command line.
73627362
</para>

doc/src/sgml/ddl.sgml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,13 +1769,13 @@ UPDATE 1
17691769
<para>
17701770
All of the policies constructed thus far have been permissive policies,
17711771
meaning that when multiple policies are applied they are combined using
1772-
the "OR" boolean operator. While permissive policies can be constructed
1772+
the <quote>OR</quote> Boolean operator. While permissive policies can be constructed
17731773
to only allow access to rows in the intended cases, it can be simpler to
17741774
combine permissive policies with restrictive policies (which the records
1775-
must pass and which are combined using the "AND" boolean operator).
1775+
must pass and which are combined using the <quote>AND</quote> Boolean operator).
17761776
Building on the example above, we add a restrictive policy to require
1777-
the administrator to be connected over a local unix socket to access the
1778-
records of the passwd table:
1777+
the administrator to be connected over a local Unix socket to access the
1778+
records of the <literal>passwd</literal> table:
17791779
</para>
17801780

17811781
<programlisting>
@@ -2971,7 +2971,8 @@ VALUES ('Albany', NULL, NULL, 'NY');
29712971
<command>CREATE TABLE</> nor is it possible to add columns to
29722972
partitions after-the-fact using <command>ALTER TABLE</>. Tables may be
29732973
added as a partition with <command>ALTER TABLE ... ATTACH PARTITION</>
2974-
only if their columns exactly match the parent, including oids.
2974+
only if their columns exactly match the parent, including any
2975+
<literal>oid</literal> column.
29752976
</para>
29762977
</listitem>
29772978

doc/src/sgml/extend.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ include $(PGXS)
12071207
<term><varname>NO_INSTALLCHECK</varname></term>
12081208
<listitem>
12091209
<para>
1210-
don't define an installcheck target, useful e.g. if tests require special configuration, or don't use pg_regress
1210+
don't define an <literal>installcheck</literal> target, useful e.g. if tests require special configuration, or don't use <application>pg_regress</application>
12111211
</para>
12121212
</listitem>
12131213
</varlistentry>

doc/src/sgml/func.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@
13021302
transformation functions <literal><function>radians()</function></literal>
13031303
and <literal><function>degrees()</function></literal> shown earlier.
13041304
However, using the degree-based trigonometric functions is preferred,
1305-
as that way avoids roundoff error for special cases such
1305+
as that way avoids round-off error for special cases such
13061306
as <literal>sind(30)</>.
13071307
</para>
13081308
</note>
@@ -9571,7 +9571,7 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple
95719571
<entry><type>tsvector</type></entry>
95729572
<entry>
95739573
reduce each string value in the document to a <type>tsvector</>, and then
9574-
concatentate those in document order to produce a single <type>tsvector</>
9574+
concatenate those in document order to produce a single <type>tsvector</>
95759575
</entry>
95769576
<entry><literal>to_tsvector('english', '{"a": "The Fat Rats"}'::json)</literal></entry>
95779577
<entry><literal>'fat':2 'rat':3</literal></entry>
@@ -9744,7 +9744,7 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple
97449744
<literal><function>unnest(<type>tsvector</>, OUT <replaceable class="PARAMETER">lexeme</> <type>text</>, OUT <replaceable class="PARAMETER">positions</> <type>smallint[]</>, OUT <replaceable class="PARAMETER">weights</> <type>text</>)</function></literal>
97459745
</entry>
97469746
<entry><type>setof record</type></entry>
9747-
<entry>expand a tsvector to a set of rows</entry>
9747+
<entry>expand a <type>tsvector</type> to a set of rows</entry>
97489748
<entry><literal>unnest('fat:2,4 cat:3 rat:5A'::tsvector)</literal></entry>
97499749
<entry><literal>(cat,{3},{D}) ...</literal></entry>
97509750
</row>
@@ -17675,7 +17675,7 @@ SELECT collation for ('foo' COLLATE "de_DE");
1767517675
<row>
1767617676
<entry><literal><function>txid_current_if_assigned()</function></literal></entry>
1767717677
<entry><type>bigint</type></entry>
17678-
<entry>same as <function>txid_current()</function> but returns null instead of assigning an xid if none is already assigned</entry>
17678+
<entry>same as <function>txid_current()</function> but returns null instead of assigning a new transaction ID if none is already assigned</entry>
1767917679
</row>
1768017680
<row>
1768117681
<entry><literal><function>txid_current_snapshot()</function></literal></entry>
@@ -17705,7 +17705,7 @@ SELECT collation for ('foo' COLLATE "de_DE");
1770517705
<row>
1770617706
<entry><literal><function>txid_status(<parameter>bigint</parameter>)</function></literal></entry>
1770717707
<entry><type>txid_status</type></entry>
17708-
<entry>report the status of the given xact - <literal>committed</literal>, <literal>aborted</literal>, <literal>in progress</literal>, or NULL if the txid is too old</entry>
17708+
<entry>report the status of the given transaction: <literal>committed</literal>, <literal>aborted</literal>, <literal>in progress</literal>, or null if the transaction ID is too old</entry>
1770917709
</row>
1771017710
</tbody>
1771117711
</tgroup>
@@ -18592,7 +18592,7 @@ postgres=# select pg_start_backup('label_goes_here');
1859218592
the <filename>backup_label</> and <filename>tablespace_map</> are returned
1859318593
in the result of the function, and should be written to files in the
1859418594
backup (and not in the data directory). There is an optional second
18595-
parameter of type boolean. If false, the <function>pg_stop_backup</>
18595+
parameter of type <type>boolean</type>. If false, the <function>pg_stop_backup</>
1859618596
will return immediately after the backup is completed without waiting for
1859718597
WAL to be archived. This behavior is only useful for backup
1859818598
software which independently monitors WAL archiving. Otherwise, WAL

doc/src/sgml/generic-wal.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
&mdash; register a buffer to be modified within the current generic WAL
3636
record. This function returns a pointer to a temporary copy of the
3737
buffer's page, where modifications should be made. (Do not modify the
38-
buffer's contents directly.) The third argument is a bitmask of flags
38+
buffer's contents directly.) The third argument is a bit mask of flags
3939
applicable to the operation. Currently the only such flag is
4040
<literal>GENERIC_XLOG_FULL_IMAGE</>, which indicates that a full-page
4141
image rather than a delta update should be included in the WAL record.

doc/src/sgml/maintenance.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ SELECT datname, age(datfrozenxid) FROM pg_database;
594594
scans every page in the table that is not already all-frozen, it should
595595
set <literal>age(relfrozenxid)</> to a value just a little more than the
596596
<varname>vacuum_freeze_min_age</> setting
597-
that was used (more by the number of transcations started since the
597+
that was used (more by the number of transactions started since the
598598
<command>VACUUM</> started). If no <structfield>relfrozenxid</>-advancing
599599
<command>VACUUM</> is issued on the table until
600600
<varname>autovacuum_freeze_max_age</> is reached, an autovacuum will soon

doc/src/sgml/monitoring.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
11431143
</row>
11441144
<row>
11451145
<entry><literal>userlock</></entry>
1146-
<entry>Waiting to acquire a userlock.</entry>
1146+
<entry>Waiting to acquire a user lock.</entry>
11471147
</row>
11481148
<row>
11491149
<entry><literal>advisory</></entry>
@@ -1244,7 +1244,7 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
12441244
</row>
12451245
<row>
12461246
<entry><literal>BtreePage</></entry>
1247-
<entry>Waiting for the page number needed to continue a parallel btree scan to become available.</entry>
1247+
<entry>Waiting for the page number needed to continue a parallel B-tree scan to become available.</entry>
12481248
</row>
12491249
<row>
12501250
<entry><literal>ExecuteGather</></entry>

doc/src/sgml/perform.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ SELECT * FROM zipcodes WHERE city = 'San Francisco' AND zip = '90210';
12141214
<para>
12151215
In many practical situations, this assumption is usually satisfied;
12161216
for example, there might be a GUI in the application that only allows
1217-
selecting compatible city and zipcode values to use in a query.
1217+
selecting compatible city and ZIP code values to use in a query.
12181218
But if that's not the case, functional dependencies may not be a viable
12191219
option.
12201220
</para>

doc/src/sgml/plperl.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ DO 'elog(WARNING, join ", ", sort keys %INC)' LANGUAGE plperl;
13351335
</programlisting>
13361336
</para>
13371337
<para>
1338-
Initialization will happen in the postmaster if the plperl library is
1338+
Initialization will happen in the postmaster if the <literal>plperl</literal> library is
13391339
included in <xref linkend="guc-shared-preload-libraries">, in which
13401340
case extra consideration should be given to the risk of destabilizing
13411341
the postmaster. The principal reason for making use of this feature

doc/src/sgml/pltcl.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ CREATE EVENT TRIGGER tcl_a_snitch ON ddl_command_start EXECUTE PROCEDURE tclsnit
882882
first word identifies the subsystem or library reporting the error;
883883
beyond that the contents are left to the individual subsystem or
884884
library. For database errors reported by PL/Tcl commands, the first
885-
word is <literal>POSTGRES</literal>, the second word is the Postgres
885+
word is <literal>POSTGRES</literal>, the second word is the PostgreSQL
886886
version number, and additional words are field name/value pairs
887887
providing detailed information about the error.
888888
Fields <varname>SQLSTATE</>, <varname>condition</>,

doc/src/sgml/ref/create_policy.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ CREATE POLICY <replaceable class="parameter">name</replaceable> ON <replaceable
126126
<para>
127127
Specify that the policy is to be created as a permissive policy.
128128
All permissive policies which are applicable to a given query will
129-
be combined together using the boolean "OR" operator. By creating
129+
be combined together using the Boolean <quote>OR</quote> operator. By creating
130130
permissive policies, administrators can add to the set of records
131131
which can be accessed. Policies are permissive by default.
132132
</para>
@@ -139,7 +139,7 @@ CREATE POLICY <replaceable class="parameter">name</replaceable> ON <replaceable
139139
<para>
140140
Specify that the policy is to be created as a restrictive policy.
141141
All restrictive policies which are applicable to a given query will
142-
be combined together using the boolean "AND" operator. By creating
142+
be combined together using the Boolean <quote>AND</quote> operator. By creating
143143
restrictive policies, administrators can reduce the set of records
144144
which can be accessed as all restrictive policies must be passed for
145145
each record.

doc/src/sgml/ref/create_statistics.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ CREATE STATISTICS s1 (dependencies) ON a, b FROM t1;
152152

153153
ANALYZE t1;
154154

155-
-- now the rowcount estimate is more accurate:
155+
-- now the row count estimate is more accurate:
156156
EXPLAIN ANALYZE SELECT * FROM t1 WHERE (a = 1) AND (b = 0);
157157
</programlisting>
158158

159159
Without functional-dependency statistics, the planner would assume
160160
that the two <literal>WHERE</> conditions are independent, and would
161161
multiply their selectivities together to arrive at a much-too-small
162-
rowcount estimate.
162+
row count estimate.
163163
With such statistics, the planner recognizes that the <literal>WHERE</>
164164
conditions are redundant and does not underestimate the rowcount.
165165
</para>

doc/src/sgml/ref/create_table.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ FROM ( { <replaceable class="PARAMETER">numeric_literal</replaceable> | <replace
443443
include multiple columns or expressions (up to 32, but this limit can
444444
altered when building <productname>PostgreSQL</productname>.), but for
445445
list partitioning, the partition key must consist of a single column or
446-
expression. If no btree operator class is specified when creating a
447-
partitioned table, the default btree operator class for the datatype will
446+
expression. If no B-tree operator class is specified when creating a
447+
partitioned table, the default B-tree operator class for the datatype will
448448
be used. If there is none, an error will be reported.
449449
</para>
450450

doc/src/sgml/ref/explain.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ ROLLBACK;
201201
<term><literal>SUMMARY</literal></term>
202202
<listitem>
203203
<para>
204-
Include summary information (eg: totalled timing information) after the
204+
Include summary information (e.g., totaled timing information) after the
205205
query plan. Summary information is included by default when
206206
<literal>ANALYZE</literal> is used but otherwise is not included by
207207
default, but can be enabled using this option. Planning time in

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,14 @@ PostgreSQL documentation
345345
<term><option>--no-role-passwords</option></term>
346346
<listitem>
347347
<para>
348-
Do not dump passwords for roles. When restored, roles will have a NULL
349-
password and authentication will always fail until the password is reset.
350-
Since password values aren't needed when this option is specified we
351-
use the catalog view pg_roles in preference to pg_authid, since access
352-
to pg_authid may be restricted by security policy.
348+
Do not dump passwords for roles. When restored, roles will have a
349+
null password, and password authentication will always fail until the
350+
password is set. Since password values aren't needed when this option
351+
is specified, the role information is read from the catalog
352+
view <structname>pg_roles</structname> instead
353+
of <structname>pg_authid</structname>. Therefore, this option also
354+
helps if access to <structname>pg_authid</structname> is restricted by
355+
some security policy.
353356
</para>
354357
</listitem>
355358
</varlistentry>

0 commit comments

Comments
 (0)