Skip to content

Commit 7e175c5

Browse files
committed
Misc documentation fixes.
- Misc grammar and punctuation fixes. - Stylistic cleanup: use spaces between function arguments and JSON fields in examples. For example "foo(a,b)" -> "foo(a, b)". Add semicolon after last END in a few PL/pgSQL examples that were missing them. - Make sentence that talked about "..." and ".." operators more clear, by avoiding to end the sentence with "..". That makes it look the same as "..." - Fix syntax description for HAVING: HAVING conditions cannot be repeated Patch by Justin Pryzby, per Yaroslav Schekin's report. Backpatch to all supported versions, to the extent that the patch applies easily. Discussion: https://www.postgresql.org/message-id/20201005191922.GE17626%40telsasoft.com
1 parent c092b2e commit 7e175c5

17 files changed

+43
-43
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@
13701370
<entry><type>bool</type></entry>
13711371
<entry>
13721372
Role can log in. That is, this role can be given as the initial
1373-
session authorization identifier
1373+
session authorization identifier.
13741374
</entry>
13751375
</row>
13761376

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9705,8 +9705,8 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
97059705
</term>
97069706
<listitem>
97079707
<para>
9708-
If set, do not trace locks for tables below this OID. (use to avoid
9709-
output on system tables)
9708+
If set, do not trace locks for tables below this OID (used to avoid
9709+
output on system tables).
97109710
</para>
97119711
<para>
97129712
This parameter is only available if the <symbol>LOCK_DEBUG</symbol>

doc/src/sgml/dblink.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ SELECT dblink_connect('myconn', 'fdtest');
167167
OK
168168
(1 row)
169169

170-
SELECT * FROM dblink('myconn','SELECT * FROM foo') AS t(a int, b text, c text[]);
170+
SELECT * FROM dblink('myconn', 'SELECT * FROM foo') AS t(a int, b text, c text[]);
171171
a | b | c
172172
----+---+---------------
173173
0 | a | {a0,b0,c0}
@@ -616,7 +616,7 @@ dblink_exec(text sql [, bool fail_on_error]) returns text
616616
<para>
617617
The SQL command that you wish to execute in the remote database,
618618
for example
619-
<literal>insert into foo values(0,'a','{"a0","b0","c0"}')</literal>.
619+
<literal>insert into foo values(0, 'a', '{"a0","b0","c0"}')</literal>.
620620
</para>
621621
</listitem>
622622
</varlistentry>
@@ -653,7 +653,7 @@ SELECT dblink_connect('dbname=dblink_test_standby');
653653
OK
654654
(1 row)
655655

656-
SELECT dblink_exec('insert into foo values(21,''z'',''{"a0","b0","c0"}'');');
656+
SELECT dblink_exec('insert into foo values(21, ''z'', ''{"a0","b0","c0"}'');');
657657
dblink_exec
658658
-----------------
659659
INSERT 943366 1
@@ -665,7 +665,7 @@ SELECT dblink_connect('myconn', 'dbname=regression');
665665
OK
666666
(1 row)
667667

668-
SELECT dblink_exec('myconn', 'insert into foo values(21,''z'',''{"a0","b0","c0"}'');');
668+
SELECT dblink_exec('myconn', 'insert into foo values(21, ''z'', ''{"a0","b0","c0"}'');');
669669
dblink_exec
670670
------------------
671671
INSERT 6432584 1

doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22565,7 +22565,7 @@ BEGIN
2256522565
obj.object_name,
2256622566
obj.object_identity;
2256722567
END LOOP;
22568-
END
22568+
END;
2256922569
$$;
2257022570
CREATE EVENT TRIGGER test_event_trigger_for_drops
2257122571
ON sql_drop

doc/src/sgml/gin.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
</para>
580580
<para>
581581
<varname>gin_pending_list_limit</varname> can be overridden for individual
582-
GIN indexes by changing storage parameters, and which allows each
582+
GIN indexes by changing storage parameters, which allows each
583583
GIN index to have its own cleanup threshold.
584584
For example, it's possible to increase the threshold only for the GIN
585585
index which can be updated heavily, and decrease it otherwise.

doc/src/sgml/high-availability.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ synchronous_standby_names = 'ANY 2 (s1, s2, s3)'
14941494
Note that in this mode, the server will apply WAL one file at a
14951495
time, so if you use the standby server for queries (see Hot Standby),
14961496
there is a delay between an action in the master and when the
1497-
action becomes visible in the standby, corresponding the time it takes
1497+
action becomes visible in the standby, corresponding to the time it takes
14981498
to fill up the WAL file. <varname>archive_timeout</varname> can be used to make that delay
14991499
shorter. Also note that you can't combine streaming replication with
15001500
this method.

doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ amgettuple (IndexScanDesc scan,
564564
will pass the caller's snapshot test. On success, <function>amgettuple</function>
565565
must also set <literal>scan-&gt;xs_recheck</literal> to true or false.
566566
False means it is certain that the index entry matches the scan keys.
567-
true means this is not certain, and the conditions represented by the
567+
True means this is not certain, and the conditions represented by the
568568
scan keys must be rechecked against the heap tuple after fetching it.
569569
This provision supports <quote>lossy</quote> index operators.
570570
Note that rechecking will extend only to the scan conditions; a partial

doc/src/sgml/isn.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
hard-coded list of prefixes; this list of prefixes is also used to hyphenate
1515
numbers on output. Since new prefixes are assigned from time to time, the
1616
list of prefixes may be out of date. It is hoped that a future version of
17-
this module will obtained the prefix list from one or more tables that
17+
this module will obtain the prefix list from one or more tables that
1818
can be easily updated by users as needed; however, at present, the
1919
list can only be updated by modifying the source code and recompiling.
2020
Alternatively, prefix validation and hyphenation support may be

doc/src/sgml/mvcc.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ ERROR: could not serialize access due to read/write dependencies among transact
12391239
<para>
12401240
The <literal>FOR UPDATE</literal> lock mode
12411241
is also acquired by any <command>DELETE</command> on a row, and also by an
1242-
<command>UPDATE</command> that modifies the values on certain columns. Currently,
1242+
<command>UPDATE</command> that modifies the values of certain columns. Currently,
12431243
the set of columns considered for the <command>UPDATE</command> case are those that
12441244
have a unique index on them that can be used in a foreign key (so partial
12451245
indexes and expressional indexes are not considered), but this may change

doc/src/sgml/parallel.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%';
471471
</para>
472472

473473
<para>
474-
The following operations are always parallel restricted.
474+
The following operations are always parallel restricted:
475475
</para>
476476

477477
<itemizedlist>

0 commit comments

Comments
 (0)