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

Skip to content

Commit 90fbf7c

Browse files
committed
Fix typos and grammar in docs and comments
This fixes several areas of the documentation and some comments in matters of style, grammar, or even format. Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected]
1 parent 6ecf488 commit 90fbf7c

23 files changed

+45
-43
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ typedef struct Counters
191191
double usage; /* usage factor */
192192
int64 wal_records; /* # of WAL records generated */
193193
int64 wal_fpi; /* # of WAL full page images generated */
194-
uint64 wal_bytes; /* total amount of WAL bytes generated */
194+
uint64 wal_bytes; /* total amount of WAL generated in bytes */
195195
} Counters;
196196

197197
/*

doc/src/sgml/amcheck.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ SET client_min_messages = DEBUG1;
525525
designed to diagnose corruption without undue risk. It cannot guard
526526
against all causes of backend crashes, as even executing the calling
527527
query could be unsafe on a badly corrupted system. Access to <link
528-
linkend="catalogs-overview">catalog tables</link> are performed and could
528+
linkend="catalogs-overview">catalog tables</link> is performed and could
529529
be problematic if the catalogs themselves are corrupted.
530530
</para>
531531

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4478,7 +4478,7 @@ SCRAM-SHA-256$<replaceable>&lt;iteration count&gt;</replaceable>:<replaceable>&l
44784478
inherited columns are to be arranged. The count starts at 1.
44794479
</para>
44804480
<para>
4481-
Indexes can not have multiple inheritance, since they can only inherit
4481+
Indexes cannot have multiple inheritance, since they can only inherit
44824482
when using declarative partitioning.
44834483
</para></entry>
44844484
</row>

doc/src/sgml/cube.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ SELECT c FROM test ORDER BY c ~&gt; 3 DESC LIMIT 5;
321321
Makes a one dimensional cube.
322322
</para>
323323
<para>
324-
<literal>cube(1,2)</literal>
324+
<literal>cube(1, 2)</literal>
325325
<returnvalue>(1),(2)</returnvalue>
326326
</para></entry>
327327
</row>

doc/src/sgml/func.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
12741274
(truncates towards zero)
12751275
</para>
12761276
<para>
1277-
<literal>div(9,4)</literal>
1277+
<literal>div(9, 4)</literal>
12781278
<returnvalue>2</returnvalue>
12791279
</para></entry>
12801280
</row>
@@ -1493,7 +1493,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
14931493
<type>bigint</type>, and <type>numeric</type>
14941494
</para>
14951495
<para>
1496-
<literal>mod(9,4)</literal>
1496+
<literal>mod(9, 4)</literal>
14971497
<returnvalue>1</returnvalue>
14981498
</para></entry>
14991499
</row>
@@ -1975,7 +1975,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
19751975
result in radians
19761976
</para>
19771977
<para>
1978-
<literal>atan2(1,0)</literal>
1978+
<literal>atan2(1, 0)</literal>
19791979
<returnvalue>1.5707963267948966</returnvalue>
19801980
</para></entry>
19811981
</row>
@@ -1995,7 +1995,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
19951995
result in degrees
19961996
</para>
19971997
<para>
1998-
<literal>atan2d(1,0)</literal>
1998+
<literal>atan2d(1, 0)</literal>
19991999
<returnvalue>90</returnvalue>
20002000
</para></entry>
20012001
</row>

doc/src/sgml/logicaldecoding.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,11 @@ stream_commit_cb(...); &lt;-- commit of the streamed transaction
953953
<para>
954954
Similar to spill-to-disk behavior, streaming is triggered when the total
955955
amount of changes decoded from the WAL (for all in-progress transactions)
956-
exceeds limit defined by <varname>logical_decoding_work_mem</varname> setting.
957-
At that point the largest toplevel transaction (measured by amount of memory
956+
exceeds the limit defined by <varname>logical_decoding_work_mem</varname> setting.
957+
At that point, the largest toplevel transaction (measured by the amount of memory
958958
currently used for decoded changes) is selected and streamed. However, in
959-
some cases we still have to spill to the disk even if streaming is enabled
960-
because if we cross the memory limit but we still have not decoded the
959+
some cases we still have to spill to disk even if streaming is enabled
960+
because we exceed the memory threshold but still have not decoded the
961961
complete tuple e.g., only decoded toast table insert but not the main table
962962
insert.
963963
</para>

doc/src/sgml/monitoring.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3470,7 +3470,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
34703470
<structfield>wal_bytes</structfield> <type>numeric</type>
34713471
</para>
34723472
<para>
3473-
Total amount of WAL bytes generated
3473+
Total amount of WAL generated in bytes
34743474
</para></entry>
34753475
</row>
34763476

@@ -3479,7 +3479,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
34793479
<structfield>wal_buffers_full</structfield> <type>bigint</type>
34803480
</para>
34813481
<para>
3482-
Number of times WAL data was written to the disk because WAL buffers got full
3482+
Number of times WAL data was written to disk because WAL buffers became full
34833483
</para></entry>
34843484
</row>
34853485

doc/src/sgml/pgstatstatements.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
<structfield>wal_bytes</structfield> <type>numeric</type>
361361
</para>
362362
<para>
363-
Total amount of WAL bytes generated by the statement
363+
Total amount of WAL generated by the statement in bytes
364364
</para></entry>
365365
</row>
366366
</tbody>

doc/src/sgml/rangetypes.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<para>
3131
Every range type has a corresponding multirange type. A multirange is
32-
an ordered list of non-continguous, non-empty, non-null ranges. Most
32+
an ordered list of non-contiguous, non-empty, non-null ranges. Most
3333
range operators also work on multiranges, and they have a few functions
3434
of their own.
3535
</para>

doc/src/sgml/ref/create_type.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ CREATE TYPE <replaceable class="parameter">name</replaceable>
180180
The optional <replaceable class="parameter">multirange_type_name</replaceable>
181181
parameter specifies the name of the corresponding multirange type. If not
182182
specified, this name is chosen automatically as follows.
183-
If range type name contains <literal>range</literal> substring, then
184-
multirange type name is formed by replacement of the <literal>range</literal>
185-
substring with <literal>multirange</literal> substring in the range
186-
type name. Otherwise, multirange type name is formed by appending
183+
If the range type name contains the substring <literal>range</literal>, then
184+
the multirange type name is formed by replacement of the <literal>range</literal>
185+
substring with <literal>multirange</literal> in the range
186+
type name. Otherwise, the multirange type name is formed by appending a
187187
<literal>_multirange</literal> suffix to the range type name.
188188
</para>
189189
</refsect2>

0 commit comments

Comments
 (0)