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

Commit 644b848

Browse files
committed
doc: Fix some typos and grammar
This is a first batch of the fixes, for the most obvious fixes. A little bit more is under discussion. Author: Thom Brown, Justin Pryzby Discussion: https://postgr.es/m/CAA-aLv7xCZ0nBJa-NWe0rxBB28TjFjS2JtjiZMoQ+0wsugG+hQ@mail.gmail.com
1 parent a923e21 commit 644b848

12 files changed

+21
-22
lines changed

doc/src/sgml/archive-modules.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<function>_PG_archive_module_init</function>. The result of the function
5151
must be a pointer to a struct of type
5252
<structname>ArchiveModuleCallbacks</structname>, which contains everything
53-
that the core code needs to know how to make use of the archive module. The
53+
that the core code needs to know to make use of the archive module. The
5454
return value needs to be of server lifetime, which is typically achieved by
5555
defining it as a <literal>static const</literal> variable in global scope.
5656

@@ -82,7 +82,7 @@ typedef const ArchiveModuleCallbacks *(*ArchiveModuleInit) (void);
8282
<para>
8383
The <function>startup_cb</function> callback is called shortly after the
8484
module is loaded. This callback can be used to perform any additional
85-
initialization required. If the archive module has a state, it can use
85+
initialization required. If the archive module has any state, it can use
8686
<structfield>state->private_data</structfield> to store it.
8787

8888
<programlisting>
@@ -143,7 +143,7 @@ typedef bool (*ArchiveFileCB) (ArchiveModuleState *state, const char *file, cons
143143
process exits (e.g., after an error) or the value of
144144
<xref linkend="guc-archive-library"/> changes. If no
145145
<function>shutdown_cb</function> is defined, no special action is taken in
146-
these situations. If the archive module has a state, this callback should
146+
these situations. If the archive module has any state, this callback should
147147
free it to avoid leaks.
148148

149149
<programlisting>

doc/src/sgml/client-auth.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@
104104
Each record can be an include directive or an authentication record.
105105
Include directives specify files that can be included, that contain
106106
additional records. The records will be inserted in place of the
107-
include records. These records only contain two fields:
107+
include directives. Include directives only contain two fields:
108108
<literal>include</literal>, <literal>include_if_exists</literal> or
109109
<literal>include_dir</literal> directive and the file or directory to be
110-
included. The file or directory can be a relative of absolute path, and can
110+
included. The file or directory can be a relative or absolute path, and can
111111
be double-quoted. For the <literal>include_dir</literal> form, all files
112112
not starting with a <literal>.</literal> and ending with
113113
<literal>.conf</literal> will be included. Multiple files within an include
@@ -810,7 +810,7 @@ host all all ::1/128 trust
810810
host all all localhost trust
811811

812812
# The same using a regular expression for DATABASE, that allows connection
813-
# to the database db1, db2 and any databases with a name beginning by "db"
813+
# to the database db1, db2 and any databases with a name beginning with "db"
814814
# and finishing with a number using two to four digits (like "db1234" or
815815
# "db12").
816816
#

doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ typedef struct IndexAmRoutine
257257
Access methods that do not point to individual tuples, but to block ranges
258258
(like <acronym>BRIN</acronym>), may allow the <acronym>HOT</acronym> optimization
259259
to continue. This does not apply to attributes referenced in index
260-
predicates, an update of such attribute always disables <acronym>HOT</acronym>.
260+
predicates, an update of such an attribute always disables <acronym>HOT</acronym>.
261261
</para>
262262

263263
</sect1>

doc/src/sgml/install-windows.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ $ENV{PROVE_TESTS}='t/020*.pl t/010*.pl'
550550
<varlistentry>
551551
<term><varname>OPENSSL</varname></term>
552552
<listitem><para>
553-
Path to a <application>openssl</application> command. The default is
553+
Path to an <application>openssl</application> command. The default is
554554
<literal>openssl</literal>, which will search for a command by that
555555
name in the configured <envar>PATH</envar>.
556556
</para></listitem>

doc/src/sgml/logicaldecoding.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ postgres=# select * from pg_logical_slot_get_changes('regression_slot', NULL, NU
340340
primary. Thus, slot creation may need to wait for some activity to happen
341341
on the primary. If the primary is idle, creating a logical slot on
342342
standby may take noticeable time. This can be sped up by calling the
343-
<function>pg_log_standby_snapshot</function> on the primary.
343+
<function>pg_log_standby_snapshot</function> function on the primary.
344344
</para>
345345

346346
<caution>

doc/src/sgml/pgbuffercache.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
<structfield>buffers_used</structfield> <type>int4</type>
215215
</para>
216216
<para>
217-
Number of unused shared buffers
217+
Number of used shared buffers
218218
</para></entry>
219219
</row>
220220

doc/src/sgml/postgres-fdw.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ OPTIONS (ADD password_required 'false');
515515
When multiple remote subtransactions are involved in the current local
516516
subtransaction, by default <filename>postgres_fdw</filename> commits or
517517
aborts those remote subtransactions serially when the local subtransaction
518-
is committed or abortd.
518+
is committed or aborted.
519519
Performance can be improved with the following options:
520520
</para>
521521

@@ -525,8 +525,8 @@ OPTIONS (ADD password_required 'false');
525525
<term><literal>parallel_commit</literal> (<type>boolean</type>)</term>
526526
<listitem>
527527
<para>
528-
This option controls whether <filename>postgres_fdw</filename> commits
529-
in parallel remote transactions opened on a foreign server in a local
528+
This option controls whether <filename>postgres_fdw</filename> commits,
529+
in parallel, remote transactions opened on a foreign server in a local
530530
transaction when the local transaction is committed. This setting also
531531
applies to remote and local subtransactions. This option can only be
532532
specified for foreign servers, not per-table. The default is

doc/src/sgml/ref/create_publication.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
205205
There can be a case where a subscription combines multiple
206206
publications. If a partitioned table is published by any
207207
subscribed publications which set
208-
<literal>publish_via_partition_root</literal> = true, changes on this
208+
<literal>publish_via_partition_root = true</literal>, changes on this
209209
partitioned table (or on its partitions) will be published using
210210
the identity and schema of this partitioned table rather than
211211
that of the individual partitions.

doc/src/sgml/ref/createuser.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ PostgreSQL documentation
8585
<term><option>--admin=<replaceable class="parameter">role</replaceable></option></term>
8686
<listitem>
8787
<para>
88-
Indicates role that will be immediately added as a member of the new
88+
Indicates a role that will be immediately added as a member of the new
8989
role with admin option, giving it the right to grant membership in the
9090
new role to others. Multiple roles to add as members (with admin
9191
option) of the new role can be specified by writing multiple
@@ -153,7 +153,7 @@ PostgreSQL documentation
153153
<term><option>--role=<replaceable class="parameter">role</replaceable></option></term>
154154
<listitem>
155155
<para>
156-
Indicates role to which this role will be added immediately as a new
156+
Indicates a role to which this role will be added immediately as a new
157157
member. Multiple roles to which this role will be added as a member
158158
can be specified by writing multiple
159159
<option>-g</option> switches.

doc/src/sgml/ref/pg_waldump.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ PostgreSQL documentation
295295
<row>
296296
<entry>FORK</entry>
297297
<entry>
298-
The name of the fork the full page image came from, as of
298+
The name of the fork the full page image came from, such as
299299
<literal>_main</literal>, <literal>_fsm</literal>,
300300
<literal>_vm</literal>, or <literal>_init</literal>.
301301
</entry>

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,17 +2903,16 @@ lo_import 152801
29032903

29042904
<para>
29052905
<literal>full</literal>: the expanded header is not truncated,
2906-
and will be as wide as the widest output
2907-
line.
2906+
and will be as wide as the widest output line.
29082907
</para>
29092908

29102909
<para>
2911-
<literal>column</literal>: truncate the header line at the
2910+
<literal>column</literal>: truncate the header line to the
29122911
width of the first column.
29132912
</para>
29142913

29152914
<para>
2916-
<literal>page</literal>: truncate the header line at the terminal
2915+
<literal>page</literal>: truncate the header line to the terminal
29172916
width.
29182917
</para>
29192918

doc/src/sgml/ref/reindex.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ REINDEX [ ( <replaceable class="parameter">option</replaceable> [, ...] ) ] { DA
129129
<para>
130130
Recreate all indexes within the current database, except system
131131
catalogs.
132-
Indexes on shared system catalogs are not processed.
132+
Indexes on system catalogs are not processed.
133133
This form of <command>REINDEX</command> cannot be executed inside a
134134
transaction block.
135135
</para>

0 commit comments

Comments
 (0)