Skip to content

Commit 1e17fb9

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 1800686 commit 1e17fb9

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
@@ -1365,7 +1365,7 @@
13651365
<entry><type>bool</type></entry>
13661366
<entry>
13671367
Role can log in. That is, this role can be given as the initial
1368-
session authorization identifier
1368+
session authorization identifier.
13691369
</entry>
13701370
</row>
13711371

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8817,8 +8817,8 @@ LOG: CleanUpLock: deleting: lock(0xb7acd844) id(24688,24696,0,0,0,1)
88178817
</term>
88188818
<listitem>
88198819
<para>
8820-
If set, do not trace locks for tables below this OID. (use to avoid
8821-
output on system tables)
8820+
If set, do not trace locks for tables below this OID (used to avoid
8821+
output on system tables).
88228822
</para>
88238823
<para>
88248824
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
@@ -20987,7 +20987,7 @@ BEGIN
2098720987
obj.object_name,
2098820988
obj.object_identity;
2098920989
END LOOP;
20990-
END
20990+
END;
2099120991
$$;
2099220992
CREATE EVENT TRIGGER test_event_trigger_for_drops
2099320993
ON sql_drop

doc/src/sgml/gin.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@
565565
</para>
566566
<para>
567567
<varname>gin_pending_list_limit</varname> can be overridden for individual
568-
GIN indexes by changing storage parameters, and which allows each
568+
GIN indexes by changing storage parameters, which allows each
569569
GIN index to have its own cleanup threshold.
570570
For example, it's possible to increase the threshold only for the GIN
571571
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
@@ -1499,7 +1499,7 @@ synchronous_standby_names = 'ANY 2 (s1, s2, s3)'
14991499
Note that in this mode, the server will apply WAL one file at a
15001500
time, so if you use the standby server for queries (see Hot Standby),
15011501
there is a delay between an action in the master and when the
1502-
action becomes visible in the standby, corresponding the time it takes
1502+
action becomes visible in the standby, corresponding to the time it takes
15031503
to fill up the WAL file. <varname>archive_timeout</varname> can be used to make that delay
15041504
shorter. Also note that you can't combine streaming replication with
15051505
this method.

doc/src/sgml/indexam.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ amgettuple (IndexScanDesc scan,
543543
will pass the caller's snapshot test. On success, <function>amgettuple</function>
544544
must also set <literal>scan-&gt;xs_recheck</literal> to true or false.
545545
False means it is certain that the index entry matches the scan keys.
546-
true means this is not certain, and the conditions represented by the
546+
True means this is not certain, and the conditions represented by the
547547
scan keys must be rechecked against the heap tuple after fetching it.
548548
This provision supports <quote>lossy</quote> index operators.
549549
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
@@ -496,7 +496,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%';
496496
</para>
497497

498498
<para>
499-
The following operations are always parallel restricted.
499+
The following operations are always parallel restricted:
500500
</para>
501501

502502
<itemizedlist>

0 commit comments

Comments
 (0)