Fix typos
authorMichael Paquier <michael@paquier.xyz>
Tue, 30 Nov 2021 02:05:15 +0000 (11:05 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 30 Nov 2021 02:05:15 +0000 (11:05 +0900)
Author: Lingjie Qiang
Discussion: https://postgr.es/m/OSAPR01MB71654E773F62AC88DC1FC8CC80669@OSAPR01MB7165.jpnprd01.prod.outlook.com

src/backend/storage/lmgr/README
src/backend/utils/adt/pg_locale.c
src/include/access/attnum.h

index c96cc7b7c5f76ca9157e30b44cc249e617b46fa7..d08ec6c402646132c4c6b35a4d4c1bf213b9f16f 100644 (file)
@@ -692,7 +692,7 @@ User Locks (Advisory Locks)
 User locks are handled totally on the application side as long term
 cooperative locks which may extend beyond the normal transaction boundaries.
 Their purpose is to indicate to an application that someone is `working'
-on an item.  So it is possible to put an user lock on a tuple's oid,
+on an item.  So it is possible to put a user lock on a tuple's oid,
 retrieve the tuple, work on it for an hour and then update it and remove
 the lock.  While the lock is active other clients can still read and write
 the tuple but they can be aware that it has been locked at the application
index 453af401cabffe481f363d8a766d76d82699cdc5..cc2ab95535e8c871ded36fceb41199e1fbd1ca8b 100644 (file)
@@ -1068,7 +1068,7 @@ get_iso_localename(const char *winlocname)
                        LOCALE_NAME_MAX_LENGTH);
 
    /*
-    * If the lc_messages is already an Unix-style string, we have a direct
+    * If the lc_messages is already a Unix-style string, we have a direct
     * match with LOCALE_SNAME, e.g. en-US, en_US.
     */
    ret_val = GetLocaleInfoEx(wc_locale_name, LOCALE_SNAME, (LPWSTR) &buffer,
index 0c43e26c2d6192e1d7e8cdafc20c2fee0d56eabd..c80bdd245ae9efb8b7fc103bb4d9000a597eeca3 100644 (file)
@@ -36,7 +36,7 @@ typedef int16 AttrNumber;
 
 /*
  * AttrNumberIsForUserDefinedAttr
- *     True iff the attribute number corresponds to an user defined attribute.
+ *     True iff the attribute number corresponds to a user defined attribute.
  */
 #define AttrNumberIsForUserDefinedAttr(attributeNumber) \
    ((bool) ((attributeNumber) > 0))