Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9436041

Browse files
committed
Copy editing: fix a bunch of misspellings and poor wording.
99% of this is docs, but also a couple of comments. No code changes. Justin Pryzby Discussion: https://postgr.es/m/[email protected]
1 parent 80fc96e commit 9436041

24 files changed

+44
-42
lines changed

doc/src/sgml/btree.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ options(<replaceable>relopts</replaceable> <type>local_relopts *</type>) returns
642642
</para>
643643
<para>
644644
Deduplication works by periodically merging groups of duplicate
645-
tuples together, forming a single posting list tuple for each
645+
tuples together, forming a single <firstterm>posting list</firstterm> tuple for each
646646
group. The column key value(s) only appear once in this
647647
representation. This is followed by a sorted array of
648648
<acronym>TID</acronym>s that point to rows in the table. This

doc/src/sgml/catalogs.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7298,7 +7298,8 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
72987298
of statistics accumulated for this statistics object by
72997299
<xref linkend="sql-analyze"/>.
73007300
A zero value indicates that no statistics should be collected.
7301-
A negative value says to use the system default statistics target.
7301+
A negative value says to use the maximum of the statistics targets of
7302+
the referenced columns, if set, or the system default statistics target.
73027303
Positive values of <structfield>stxstattarget</structfield>
73037304
determine the target number of <quote>most common values</quote>
73047305
to collect.

doc/src/sgml/config.sgml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3813,7 +3813,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
38133813
servers or streaming base backup clients (i.e., the maximum number of
38143814
simultaneously running WAL sender processes). The default is
38153815
<literal>10</literal>. The value <literal>0</literal> means
3816-
replication is disabled. Abrupt streaming client disconnection might
3816+
replication is disabled. Abrupt disconnection of a streaming client might
38173817
leave an orphaned connection slot behind until a timeout is reached,
38183818
so this parameter should be set slightly higher than the maximum
38193819
number of expected clients so disconnected clients can immediately
@@ -3902,9 +3902,9 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
39023902
slots</link> are allowed to retain in the <filename>pg_wal</filename>
39033903
directory at checkpoint time.
39043904
If <varname>max_slot_wal_keep_size</varname> is -1 (the default),
3905-
replication slots retain unlimited amount of WAL files. If
3906-
restart_lsn of a replication slot gets behind more than that megabytes
3907-
from the current LSN, the standby using the slot may no longer be able
3905+
replication slots may retain an unlimited amount of WAL files. Otherwise, if
3906+
restart_lsn of a replication slot falls behind the current LSN by more
3907+
than the given size, the standby using the slot may no longer be able
39083908
to continue replication due to removal of required WAL files. You
39093909
can see the WAL availability of replication slots
39103910
in <link linkend="view-pg-replication-slots">pg_replication_slots</link>.
@@ -6847,9 +6847,9 @@ log_line_prefix = '%m [%p] %q%u@%d/%a '
68476847
</term>
68486848
<listitem>
68496849
<para>
6850-
If greater than zero, each bind parameter value reported in
6851-
non-error statement-logging messages is trimmed to this many bytes.
6852-
Zero disables logging bind parameters with statements.
6850+
If greater than zero, each bind parameter value logged with a
6851+
non-error statement-logging message is trimmed to this many bytes.
6852+
Zero disables logging of bind parameters for non-error statement logs.
68536853
<literal>-1</literal> (the default) allows bind parameters to be
68546854
logged in full.
68556855
If this value is specified without units, it is taken as bytes.
@@ -8224,10 +8224,10 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
82248224
a regular <command>VACUUM</command> in that it visits every page that might
82258225
contain unfrozen XIDs or MXIDs, not just those that might contain dead
82268226
tuples. The default is 150 million transactions. Although users can
8227-
set this value anywhere from zero to two billions, <command>VACUUM</command>
8227+
set this value anywhere from zero to two billion, <command>VACUUM</command>
82288228
will silently limit the effective value to 95% of
82298229
<xref linkend="guc-autovacuum-freeze-max-age"/>, so that a
8230-
periodical manual <command>VACUUM</command> has a chance to run before an
8230+
periodic manual <command>VACUUM</command> has a chance to run before an
82318231
anti-wraparound autovacuum is launched for the table. For more
82328232
information see
82338233
<xref linkend="vacuum-for-wraparound"/>.
@@ -8271,10 +8271,10 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
82718271
a regular <command>VACUUM</command> in that it visits every page that might
82728272
contain unfrozen XIDs or MXIDs, not just those that might contain dead
82738273
tuples. The default is 150 million multixacts.
8274-
Although users can set this value anywhere from zero to two billions,
8274+
Although users can set this value anywhere from zero to two billion,
82758275
<command>VACUUM</command> will silently limit the effective value to 95% of
82768276
<xref linkend="guc-autovacuum-multixact-freeze-max-age"/>, so that a
8277-
periodical manual <command>VACUUM</command> has a chance to run before an
8277+
periodic manual <command>VACUUM</command> has a chance to run before an
82788278
anti-wraparound is launched for the table.
82798279
For more information see <xref linkend="vacuum-for-multixact-wraparound"/>.
82808280
</para>

doc/src/sgml/ddl.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3992,7 +3992,7 @@ ALTER TABLE measurement ATTACH PARTITION measurement_y2008m02
39923992
Before running the <command>ATTACH PARTITION</command> command, it is
39933993
recommended to create a <literal>CHECK</literal> constraint on the table to
39943994
be attached matching the desired partition constraint. That way,
3995-
the system will be able to skip the scan to validate the implicit
3995+
the system will be able to skip the scan which is otherwise needed to validate the implicit
39963996
partition constraint. Without the <literal>CHECK</literal> constraint,
39973997
the table will be scanned to validate the partition constraint while
39983998
holding an <literal>ACCESS EXCLUSIVE</literal> lock on that partition

doc/src/sgml/func.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15626,11 +15626,11 @@ table2-mapping
1562615626
<literal>'use_json_null'</literal>.
1562715627
</para>
1562815628
<para>
15629-
<literal>jsonb_set_lax('[{"f1":1,"f2":null},2,null,3]', '{0,f1}',null)</literal>
15629+
<literal>jsonb_set_lax('[{"f1":1,"f2":null},2,null,3]', '{0,f1}', null)</literal>
1563015630
<returnvalue>[{"f1":null,"f2":null},2,null,3]</returnvalue>
1563115631
</para>
1563215632
<para>
15633-
<literal>jsonb_set_lax('[{"f1":99,"f2":null},2]', '{0,f3}',null, true, 'return_target')</literal>
15633+
<literal>jsonb_set_lax('[{"f1":99,"f2":null},2]', '{0,f3}', null, true, 'return_target')</literal>
1563415634
<returnvalue>[{"f1": 99, "f2": null}, 2]</returnvalue>
1563515635
</para></entry>
1563615636
</row>

doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
12271227
<term><literal>connect_timeout</literal></term>
12281228
<listitem>
12291229
<para>
1230-
Maximum wait for connection, in seconds (write as a decimal integer,
1230+
Maximum time to wait while connecting, in seconds (write as a decimal integer,
12311231
e.g., <literal>10</literal>). Zero, negative, or not specified means
12321232
wait indefinitely. The minimum allowed timeout is 2 seconds, therefore
12331233
a value of <literal>1</literal> is interpreted as <literal>2</literal>.

doc/src/sgml/logical-replication.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@
403403
<listitem>
404404
<para>
405405
Replication is only supported by tables, including partitioned tables.
406-
Attempts to replicate other types of relations such as views, materialized
406+
Attempts to replicate other types of relations, such as views, materialized
407407
views, or foreign tables, will result in an error.
408408
</para>
409409
</listitem>

doc/src/sgml/monitoring.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6089,8 +6089,8 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
60896089
<entry><literal>waiting for checkpoint to finish</literal></entry>
60906090
<entry>
60916091
The WAL sender process is currently performing
6092-
<function>pg_start_backup</function> to set up for
6093-
taking a base backup, and waiting for backup start
6092+
<function>pg_start_backup</function> to prepare to
6093+
take a base backup, and waiting for the start-of-backup
60946094
checkpoint to finish.
60956095
</entry>
60966096
</row>

doc/src/sgml/protocol.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,7 +2587,7 @@ The commands accepted in replication mode are:
25872587
and sent along with the backup. The manifest is a list of every
25882588
file present in the backup with the exception of any WAL files that
25892589
may be included. It also stores the size, last modification time, and
2590-
an optional checksum for each file.
2590+
optionally a checksum for each file.
25912591
A value of <literal>force-encode</literal> forces all filenames
25922592
to be hex-encoded; otherwise, this type of encoding is performed only
25932593
for files whose names are non-UTF8 octet sequences.
@@ -2603,7 +2603,7 @@ The commands accepted in replication mode are:
26032603
<term><literal>MANIFEST_CHECKSUMS</literal> <replaceable>checksum_algorithm</replaceable></term>
26042604
<listitem>
26052605
<para>
2606-
Specifies the algorithm that should be applied to each file included
2606+
Specifies the checksum algorithm that should be applied to each file included
26072607
in the backup manifest. Currently, the available
26082608
algorithms are <literal>NONE</literal>, <literal>CRC32C</literal>,
26092609
<literal>SHA224</literal>, <literal>SHA256</literal>,

doc/src/sgml/ref/alter_statistics.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ ALTER STATISTICS <replaceable class="parameter">name</replaceable> SET STATISTIC
101101
The statistic-gathering target for this statistics object for subsequent
102102
<xref linkend="sql-analyze"/> operations.
103103
The target can be set in the range 0 to 10000; alternatively, set it
104-
to -1 to revert to using the system default statistics
104+
to -1 to revert to using the maximum of the statistics target of the
105+
referenced columns, if set, or the system default statistics
105106
target (<xref linkend="guc-default-statistics-target"/>).
106107
For more information on the use of statistics by the
107108
<productname>PostgreSQL</productname> query planner, refer to

0 commit comments

Comments
 (0)