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

Commit 7b2822e

Browse files
doc: Missing markup, punctuation and wordsmithing
Various improvements to the documentation like adding missing markup, improving punctuation, ensuring consistent spelling of words and minor wordsmithing. Author: Oleg Sibiryakov <o.sibiryakov@postgrespro.ru> Discussion: https://postgr.es/m/b7d0a03c-107e-48c7-a5c9-2c6f73cdf78f@postgrespro.ru
1 parent 9c73395 commit 7b2822e

16 files changed

+38
-34
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8041,7 +8041,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
80418041
</para>
80428042
<para>
80438043
If true, the associated replication slots (i.e. the main slot and the
8044-
table sync slots) in the upstream database are enabled to be
8044+
table synchronization slots) in the upstream database are enabled to be
80458045
synchronized to the standbys
80468046
</para></entry>
80478047
</row>

doc/src/sgml/charset.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";
862862
This SQL standard collation sorts using the Unicode Collation
863863
Algorithm with the Default Unicode Collation Element Table. It is
864864
available in all encodings. ICU support is required to use this
865-
collation, and behavior may change if Postgres is built with a
865+
collation, and behavior may change if <productname>PostgreSQL</productname> is built with a
866866
different version of ICU. (This collation has the same behavior as
867867
the ICU root locale; see <xref
868868
linkend="collation-managing-predefined-icu-und-x-icu"/>.)
@@ -897,7 +897,7 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";
897897
expressions), it uses the POSIX Compatible variant of Unicode <ulink
898898
url="https://www.unicode.org/reports/tr18/#Compatibility_Properties">Compatibility
899899
Properties</ulink>. Behavior is efficient and stable within a
900-
<productname>Postgres</productname> major version. This collation is
900+
<productname>PostgreSQL</productname> major version. This collation is
901901
only available for encoding <literal>UTF8</literal>.
902902
</para>
903903
</listitem>

doc/src/sgml/config.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ include_dir 'conf.d'
708708
</para>
709709

710710
<para>
711-
PostgreSQL sizes certain resources based directly on the value of
711+
<productname>PostgreSQL</productname> sizes certain resources based directly on the value of
712712
<varname>max_connections</varname>. Increasing its value leads to
713713
higher allocation of those resources, including shared memory.
714714
</para>
@@ -6422,7 +6422,7 @@ SELECT * FROM parent WHERE key = 2400;
64226422
</para>
64236423
<para>
64246424
If <systemitem>csvlog</systemitem> is included in <varname>log_destination</varname>,
6425-
log entries are output in <quote>comma separated
6425+
log entries are output in <quote>comma-separated
64266426
value</quote> (<acronym>CSV</acronym>) format, which is convenient for
64276427
loading logs into programs.
64286428
See <xref linkend="runtime-config-logging-csvlog"/> for details.
@@ -10838,7 +10838,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
1083810838
Turning this setting off is intended for environments where the
1083910839
configuration of <productname>PostgreSQL</productname> is managed by
1084010840
some external tool.
10841-
In such environments, a well intentioned superuser might
10841+
In such environments, a well-intentioned superuser might
1084210842
<emphasis>mistakenly</emphasis> use <command>ALTER SYSTEM</command>
1084310843
to change the configuration instead of using the external tool.
1084410844
This might result in unintended behavior, such as the external tool

doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21437,7 +21437,7 @@ SELECT NULLIF(value, '(none)') ...
2143721437
</para>
2143821438
<para>
2143921439
Extracts the lower bound of the multirange (<literal>NULL</literal> if the
21440-
multirange is empty has no lower bound).
21440+
multirange is empty or has no lower bound).
2144121441
</para>
2144221442
<para>
2144321443
<literal>lower('{[1.1,2.2)}'::nummultirange)</literal>

doc/src/sgml/libpq.sgml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,9 @@ int PQsocketPoll(int sock, int forRead, int forWrite,
545545
the Unix epoch (that is, <type>time_t</type> times 1 million).
546546
Timeout is infinite if <parameter>end_time</parameter>
547547
is <literal>-1</literal>. Timeout is immediate (no blocking) if
548-
end_time is <literal>0</literal> (or indeed, any time before now).
549-
Timeout values can be calculated conveniently by adding the desired
550-
number of microseconds to the result of
548+
<parameter>end_time</parameter> is <literal>0</literal> (or indeed, any
549+
time before now). Timeout values can be calculated conveniently by
550+
adding the desired number of microseconds to the result of
551551
<xref linkend="libpq-PQgetCurrentTimeUSec"/>.
552552
Note that the underlying system calls may have less than microsecond
553553
precision, so that the actual delay may be imprecise.
@@ -1830,11 +1830,12 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
18301830
<term><literal>direct</literal></term>
18311831
<listitem>
18321832
<para>
1833-
start SSL handshake directly after establishing the TCP/IP
1834-
connection. This is only allowed with sslmode=require or higher,
1835-
because the weaker settings could lead to unintended fallback to
1836-
plaintext authentication when the server does not support direct
1837-
SSL handshake.
1833+
start SSL handshake directly after establishing the TCP/IP
1834+
connection. This is only allowed with
1835+
<literal>sslmode=require</literal> or higher, because the weaker
1836+
settings could lead to unintended fallback to plaintext
1837+
authentication when the server does not support direct SSL
1838+
handshake.
18381839
</para>
18391840
</listitem>
18401841
</varlistentry>
@@ -9582,7 +9583,7 @@ ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
95829583
<para>
95839584
For backwards compatibility with earlier versions of PostgreSQL, if a
95849585
root CA file exists, the behavior of
9585-
<literal>sslmode</literal>=<literal>require</literal> will be the same
9586+
<literal>sslmode=require</literal> will be the same
95869587
as that of <literal>verify-ca</literal>, meaning the server certificate
95879588
is validated against the CA. Relying on this behavior is discouraged,
95889589
and applications that need certificate validation should always use

doc/src/sgml/protocol.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,7 +3265,7 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
32653265
</term>
32663266
<listitem>
32673267
<para>
3268-
Comma separated list of publication names for which to subscribe
3268+
Comma-separated list of publication names for which to subscribe
32693269
(receive changes). The individual publication names are treated
32703270
as standard objects names and can be quoted the same as needed.
32713271
At least one publication name is required.
@@ -3330,8 +3330,9 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
33303330
</term>
33313331
<listitem>
33323332
<para>
3333-
Option to send changes by their origin. Possible values are "none"
3334-
to only send the changes that have no origin associated, or "any"
3333+
Option to send changes by their origin. Possible values are
3334+
<literal>none</literal> to only send the changes that have no origin
3335+
associated, or <literal>any</literal>
33353336
to send the changes regardless of their origin. This can be used
33363337
to avoid loops (infinite replication of the same data) among
33373338
replication nodes.

doc/src/sgml/ref/alter_table.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,8 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
11231123
</para>
11241124

11251125
<para>
1126-
All the forms of ALTER TABLE that act on a single table, except
1127-
<literal>RENAME</literal>, <literal>SET SCHEMA</literal>,
1126+
All the forms of <command>ALTER TABLE</command> that act on a single table,
1127+
except <literal>RENAME</literal>, <literal>SET SCHEMA</literal>,
11281128
<literal>ATTACH PARTITION</literal>, and
11291129
<literal>DETACH PARTITION</literal> can be combined into
11301130
a list of multiple alterations to be applied together. For example, it

doc/src/sgml/ref/copy.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
427427
<term><literal>LOG_VERBOSITY</literal></term>
428428
<listitem>
429429
<para>
430-
Specify the amount of messages emitted by a <command>COPY</command>
430+
Specifies the amount of messages emitted by a <command>COPY</command>
431431
command: <literal>default</literal> or <literal>verbose</literal>. If
432432
<literal>verbose</literal> is specified, additional messages are emitted
433433
during processing.
@@ -779,7 +779,7 @@ COPY <replaceable class="parameter">count</replaceable>
779779
<title>CSV Format</title>
780780

781781
<para>
782-
This format option is used for importing and exporting the Comma
782+
This format option is used for importing and exporting the Comma-
783783
Separated Value (<literal>CSV</literal>) file format used by many other
784784
programs, such as spreadsheets. Instead of the escaping rules used by
785785
<productname>PostgreSQL</productname>'s standard text format, it

doc/src/sgml/ref/create_subscription.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl
185185

186186
<para>
187187
When setting <literal>slot_name</literal> to a valid name and
188-
<literal>create_slot</literal> to false, the
188+
<literal>create_slot</literal> to <literal>false</literal>, the
189189
<literal>failover</literal> property value of the named slot may
190190
differ from the counterpart <literal>failover</literal> parameter
191191
specified in the subscription. Always ensure the slot property
@@ -474,7 +474,8 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl
474474
<para>
475475
If any table in the publication has a <literal>WHERE</literal> clause, rows
476476
for which the <replaceable class="parameter">expression</replaceable>
477-
evaluates to false or null will not be published. If the subscription has
477+
evaluates to <literal>false</literal> or <literal>NULL</literal> will not be
478+
published. If the subscription has
478479
several publications in which the same table has been published with
479480
different <literal>WHERE</literal> clauses, a row will be published if any
480481
of the expressions (referring to that publish operation) are satisfied. In

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ PostgreSQL documentation
6767
</para>
6868

6969
<para>
70-
pg_upgrade supports upgrades from 9.2.X and later to the current
70+
<application>pg_upgrade</application> supports upgrades from 9.2.X and later to the current
7171
major release of <productname>PostgreSQL</productname>, including snapshot and beta releases.
7272
</para>
7373
</refsect1>

doc/src/sgml/sepgsql.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Policy from config file: targeted
8787
</para>
8888

8989
<para>
90-
To build this module specify <xref
90+
To build this module, specify <xref
9191
linkend="configure-option-with-sepgsql"/> (when using <link
9292
linkend="install-make">make and autoconf</link> ) or <xref
9393
linkend="configure-with-sepgsql-meson"/> (when using <link

doc/src/sgml/syntax.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2496,7 +2496,7 @@ SELECT getf1(CAST(ROW(11,'this is a test',2.5) AS myrowtype));
24962496
linkend="functions-comparison"/>, to compare one row against another
24972497
as described in <xref linkend="functions-comparisons"/>, and to
24982498
use them in connection with subqueries, as discussed in <xref
2499-
linkend="functions-subquery"/>,
2499+
linkend="functions-subquery"/>.
25002500
</para>
25012501

25022502
</sect2>

doc/src/sgml/system-views.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
25862586
True if this logical slot conflicted with recovery (and so is now
25872587
invalidated). When this column is true, check
25882588
<structfield>invalidation_reason</structfield> column for the conflict
2589-
reason. Always NULL for physical slots.
2589+
reason. Always <literal>NULL</literal> for physical slots.
25902590
</para></entry>
25912591
</row>
25922592

@@ -3945,7 +3945,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
39453945
range type column. (Null for non-range types.)
39463946
</para>
39473947
<para>
3948-
This histogram is calculated using the <literal>subtype_diff</literal>
3948+
This histogram is calculated using the <function>subtype_diff</function>
39493949
range function regardless of whether range bounds are inclusive.
39503950
</para></entry>
39513951
</row>

doc/src/sgml/trigger.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@
357357
<para>
358358
If a foreign key constraint specifies referential actions (that
359359
is, cascading updates or deletes), those actions are performed via
360-
ordinary SQL update or delete commands on the referencing table.
360+
ordinary SQL <command>UPDATE</command> or <command>DELETE</command>
361+
commands on the referencing table.
361362
In particular, any triggers that exist on the referencing table
362363
will be fired for those changes. If such a trigger modifies or
363364
blocks the effect of one of these commands, the end result could

doc/src/sgml/user-manag.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ REVOKE <replaceable>group_role</replaceable> FROM <replaceable>role1</replaceabl
407407
temporarily <quote>become</quote> the group role. In this state, the
408408
database session has access to the privileges of the group role rather
409409
than the original login role, and any database objects created are
410-
considered owned by the group role not the login role. Second, member
410+
considered owned by the group role, not the login role. Second, member
411411
roles that have been granted membership with the
412412
<literal>INHERIT</literal> option automatically have use of the
413413
privileges of those directly or indirectly a member of, though the

doc/src/sgml/wal.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,11 @@
679679

680680
<para>
681681
In some cases, when the WAL size on the primary increases quickly,
682-
for instance during massive INSERT,
682+
for instance during massive <command>INSERT</command>,
683683
the <structfield>restartpoints_req</structfield> counter on the standby
684684
may demonstrate a peak growth.
685685
This occurs because requests to create a new restartpoint due to increased
686-
XLOG consumption cannot be performed because the safe checkpoint record
686+
WAL consumption cannot be performed because the safe checkpoint record
687687
since the last restartpoint has not yet been replayed on the standby.
688688
This behavior is normal and does not lead to an increase in system resource
689689
consumption.

0 commit comments

Comments
 (0)