Fix some typos, grammar and style in docs and comments
authorMichael Paquier
Wed, 24 Feb 2021 07:13:56 +0000 (16:13 +0900)
committerMichael Paquier
Wed, 24 Feb 2021 07:13:56 +0000 (16:13 +0900)
The portions fixing the documentation are backpatched where needed.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20210210235557[email protected]
backpatch-through: 9.6

doc/src/sgml/charset.sgml
doc/src/sgml/pageinspect.sgml
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/create_type.sgml
doc/src/sgml/ref/drop_index.sgml
doc/src/sgml/rules.sgml

index 2745b4441765485858e26899afa666582c4d431d..1a9a9f6e02a16e27e3ed11d5596eb641c773ad8e 100644 (file)
@@ -619,7 +619,7 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";
     name such as de_DE can be considered unique
     within a given database even though it would not be unique globally.
     Use of the stripped collation names is recommended, since it will
-    make one less thing you need to change if you decide to change to
+    make one fewer thing you need to change if you decide to change to
     another database encoding.  Note however that the default,
     C, and POSIX collations can be used regardless of
     the database encoding.
index 687c3606baf55cf30ea238cd94dc556adf0c1b0e..ac5caa6a6c24bb1836831062df3d95aae420f4f5 100644 (file)
@@ -211,7 +211,7 @@ test=# SELECT tuple_data_split('pg_class'::regclass, t_data, t_infomask, t_infom
      
      
       If do_detoast is true,
-      attribute that will be detoasted as needed. Default value is
+      attributes will be detoasted as needed. Default value is
       false.
      
     
index 6efcab3734202baf1e47c76e47e967d17d027552..e26619e1b53d40a43d3b60285b92b5c68a544e8a 100644 (file)
@@ -6922,8 +6922,8 @@ Delete
 
 
 
-                Identifies the following TupleData message as a old tuple.
-                This field is present if the table in which the delete has
+                Identifies the following TupleData message as an old tuple.
+                This field is present if the table in which the delete
                 happened has REPLICA IDENTITY set to FULL.
 
 
index 111f8e65d29d7f7576799ddcb4dea7168feb6aff..473bd6def5383a59af215e03a8fe42c2fbc5f437 100644 (file)
@@ -790,7 +790,7 @@ CREATE TYPE name
    Before PostgreSQL version 8.3, the name of
    a generated array type was always exactly the element type's name with one
    underscore character (_) prepended.  (Type names were
-   therefore restricted in length to one less character than other names.)
+   therefore restricted in length to one fewer character than other names.)
    While this is still usually the case, the array type name may vary from
    this in case of maximum-length names or collisions with user type names
    that begin with underscore.  Writing code that depends on this convention
index 85cf23bca20aa06219e548aa675b9aab99aa1dc6..b6d2c2014f28e82d6f69aa41e4eb9fb0b931a4c4 100644 (file)
@@ -45,7 +45,7 @@ DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name
      
       Drop the index without locking out concurrent selects, inserts, updates,
       and deletes on the index's table.  A normal DROP INDEX
-      acquires exclusive lock on the table, blocking other accesses until the
+      acquires an exclusive lock on the table, blocking other accesses until the
       index drop can be completed.  With this option, the command instead
       waits until conflicting transactions have completed.
      
index e81addcfa9bb961153cd10a2047181bf5dd2b593..aa172d102b6f8dc7141d07622d866d71040bd321 100644 (file)
@@ -1266,7 +1266,7 @@ CREATE [ OR REPLACE ] RULE name AS
 
     The query trees generated from rule actions are thrown into the
     rewrite system again, and maybe more rules get applied resulting
-    in more or less query trees.
+    in additional or fewer query trees.
     So a rule's actions must have either a different
     command type or a different result relation than the rule itself is
     on, otherwise this recursive process will end up in an infinite loop.