Fix typos in the code
authorMichael Paquier <[email protected]>
Wed, 30 Oct 2019 01:03:00 +0000 (10:03 +0900)
committerMichael Paquier <[email protected]>
Wed, 30 Oct 2019 01:03:00 +0000 (10:03 +0900)
Author: Vignesh C
Reviewed-by: Dilip Kumar, Michael Paquier
Discussion: https://postgr.es/m/CALDaNm0ni+GAOe4+fbXiOxNrVudajMYmhJFtXGX-zBPoN8ixhw@mail.gmail.com

17 files changed:
contrib/pg_trgm/trgm_op.c
contrib/pgcrypto/pgp-info.c
contrib/sepgsql/database.c
contrib/sepgsql/dml.c
contrib/sepgsql/schema.c
src/backend/access/common/detoast.c
src/backend/access/nbtree/nbtsplitloc.c
src/backend/replication/walreceiver.c
src/backend/statistics/mcv.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/proc.c
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/mmgr/freepage.c
src/bin/pg_upgrade/parallel.c
src/bin/psql/tab-complete.c
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/pgtypeslib/interval.c

index 4679efe6568b41111fedb33d7ce2c6ac505bcfb3..07a31803786f3792358dc56e77030e5653f9f6df 100644 (file)
@@ -467,7 +467,7 @@ comp_ptrgm(const void *v1, const void *v2)
  * ulen1: count of unique trigrams of array "trg1".
  * len2: length of array "trg2" and array "trg2indexes".
  * len: length of the array "found".
- * lags: set of boolean flags parametrizing similarity calculation.
+ * lags: set of boolean flags parameterizing similarity calculation.
  * bounds: whether each trigram is left/right bound of word.
  *
  * Returns word similarity.
@@ -632,7 +632,7 @@ iterate_word_similarity(int *trg2indexes,
  *
  * str1: search pattern string, of length slen1 bytes.
  * str2: text in which we are looking for a word, of length slen2 bytes.
- * flags: set of boolean flags parametrizing similarity calculation.
+ * flags: set of boolean flags parameterizing similarity calculation.
  *
  * Returns word similarity.
  */
index b2300ea65683037e9fcdf26a6d1f004e8c58ffbc..83dc60486bd98628e9ee0add3623f0b19e60bf83 100644 (file)
@@ -169,7 +169,7 @@ pgp_get_keyid(MBuf *pgp_data, char *dst)
                                break;
                        case PGP_PKT_SYMENCRYPTED_SESSKEY:
                                got_symenc_key++;
-                               /* fallthru */
+                               /* fall through */
                        case PGP_PKT_SIGNATURE:
                        case PGP_PKT_MARKER:
                        case PGP_PKT_TRUST:
index 0190d381a90592182a19e6f244633fb23956ac39..5850e076eb987ac6a2553518f9bc8433797c555b 100644 (file)
@@ -74,7 +74,7 @@ sepgsql_database_post_create(Oid databaseId, const char *dtemplate)
         * Compute a default security label of the newly created database based on
         * a pair of security label of client and source database.
         *
-        * XXX - uncoming version of libselinux supports to take object name to
+        * XXX - upcoming version of libselinux supports to take object name to
         * handle special treatment on default security label.
         */
        rel = table_open(DatabaseRelationId, AccessShareLock);
index 14198799990d122e2279125c82c9cab5f9ce60ac..5ff04dbf0530b2cf5cb3ea78a861109579340ede 100644 (file)
@@ -85,7 +85,7 @@ fixup_whole_row_references(Oid relOid, Bitmapset *columns)
  * When user is querying on a table with children, it implicitly accesses
  * child tables also. So, we also need to check security label of child
  * tables and columns, but here is no guarantee attribute numbers are
- * same between the parent ans children.
+ * same between the parent and children.
  * It returns a bitmapset which contains attribute number of the child
  * table based on the given bitmapset of the parent.
  */
index 92ef156ff57ddbdf35a3e713f729808c3dc9db0f..00c227d86c143c48e96934b6e4c64411b014d468 100644 (file)
@@ -51,7 +51,7 @@ sepgsql_schema_post_create(Oid namespaceId)
         * Compute a default security label when we create a new schema object
         * under the working database.
         *
-        * XXX - uncoming version of libselinux supports to take object name to
+        * XXX - upcoming version of libselinux supports to take object name to
         * handle special treatment on default security label; such as special
         * label on "pg_temp" schema.
         */
index b25ca6810bc75de2f5cca91d3991f284d9106272..f752ac7bbc917c1220eb764da6378a550d493b9d 100644 (file)
@@ -501,8 +501,8 @@ toast_fetch_datum(struct varlena *attr)
  *     in the toast relation
  *
  *     Note that this function supports non-compressed external datums
- *     and compressed external datums (in which case the requrested slice
- *  has to be a prefix, i.e. sliceoffset has to be 0).
+ *     and compressed external datums (in which case the requested slice
+ *     has to be a prefix, i.e. sliceoffset has to be 0).
  * ----------
  */
 static struct varlena *
index 1c1029b6c4d4a8c6dcce604ad96cb2e048952508..a04d4e25d69e4bbeeee006f5226d6a92ef9e37a9 100644 (file)
@@ -814,7 +814,7 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
                final->firstoldonright < state->newitemoff + MAX_LEAF_INTERVAL)
        {
                /*
-                * Avoid the problem by peforming a 50:50 split when the new item is
+                * Avoid the problem by performing a 50:50 split when the new item is
                 * just to the right of the would-be "many duplicates" split point.
                 */
                final = &state->splits[0];
index 6abc780778301208e6200ba671be818a7d732da6..f54ae7690dd7d9e97830e1755ac579dd2e5f7332 100644 (file)
@@ -1052,7 +1052,7 @@ XLogWalRcvFlush(bool dying)
  * false, this is a no-op.
  *
  * If 'requestReply' is true, requests the server to reply immediately upon
- * receiving this message. This is used for heartbearts, when approaching
+ * receiving this message. This is used for heartbeats, when approaching
  * wal_receiver_timeout.
  */
 static void
index ee35f6afc56b84b0538fa1c9dc7ee02c957ad20c..ae0ddacd06445aae98a393a76fabd1048b9c458b 100644 (file)
@@ -476,7 +476,7 @@ sort_item_compare(const void *a, const void *b, void *arg)
  * build_column_frequencies
  *     compute frequencies of values in each column
  *
- * This returns an array of SortItems for each attibute the MCV is built
+ * This returns an array of SortItems for each attribute the MCV is built
  * on, with a frequency (number of occurrences) for each value. This is
  * then used to compute "base" frequency of MCV items.
  *
index 483f705305cc89f0d2710ecb52e5d7e240ce7be6..7ad10736d5bf19164609d8b0811c20739ed9b7aa 100644 (file)
@@ -1208,7 +1208,7 @@ BufferAlloc(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
                        LWLockAcquire(newPartitionLock, LW_EXCLUSIVE);
                        /* remember we have no old-partition lock or tag */
                        oldPartitionLock = NULL;
-                       /* this just keeps the compiler quiet about uninit variables */
+                       /* keep the compiler quiet about uninitialized variables */
                        oldHash = 0;
                }
 
index 498373fd0ee1b4b40f3abeeffd149bfa1ddaa1dc..b3c54a6a27df40522f1f86f3e07f094acb7bc3fa 100644 (file)
@@ -636,7 +636,7 @@ PublishStartupProcessInformation(void)
 }
 
 /*
- * Used from bufgr to share the value of the buffer that Startup waits on,
+ * Used from bufmgr to share the value of the buffer that Startup waits on,
  * or to reset the value to "not waiting" (-1). This allows processing
  * of recovery conflicts for buffer pins. Set is made before backends look
  * at this value, so locking not required, especially since the set is
index 3553a304b8c1861e86f48f998163b35e6f2bd052..1b0fb2afae6e646aed5955678713f6a30b26ce1d 100644 (file)
@@ -205,7 +205,7 @@ struct ColumnIOData
        Oid                     typid;                  /* column type id */
        int32           typmod;                 /* column type modifier */
        TypeCat         typcat;                 /* column type category */
-       ScalarIOData scalar_io;         /* metadata cache for directi conversion
+       ScalarIOData scalar_io;         /* metadata cache for direct conversion
                                                                 * through input function */
        union
        {
index faf5d10158bfa0420b77259776883b13455ed1ef..311750e1cfd79af76816b739fc5cf42b56aa1e86 100644 (file)
@@ -1692,7 +1692,7 @@ FreePageManagerPutInternal(FreePageManager *fpm, Size first_page, Size npages,
 
                        /*
                         * The act of allocating pages to recycle may have invalidated the
-                        * results of our previous btree reserch, so repeat it. (We could
+                        * results of our previous btree research, so repeat it. (We could
                         * recheck whether any of our split-avoidance strategies that were
                         * not viable before now are, but it hardly seems worthwhile, so
                         * we don't bother. Consolidation can't be possible now if it
index d3d34018c01a5905b99f20af46c5225a8cdb25df..39c508e73b2b36b6aee8d8fed7c36dc857d28984 100644 (file)
@@ -333,7 +333,7 @@ reap_child(bool wait_for_child)
                thread_handles[thread_num] = thread_handles[parallel_jobs - 1];
 
                /*
-                * Move last active thead arg struct into the now-dead slot, and the
+                * Move last active thread arg struct into the now-dead slot, and the
                 * now-dead slot to the end for reuse by the next thread. Though the
                 * thread struct is in use by another thread, we can safely swap the
                 * struct pointers within the array.
index e00dbab5aa1bd40ad1e3784e2dc5dd9c061da6dc..2b1e3cda4a40272925847ec920d9892590fd54a8 100644 (file)
@@ -1490,7 +1490,7 @@ psql_completion(const char *text, int start, int end)
        else if (TailMatches("CREATE"))
                matches = completion_matches(text, create_command_generator);
 
-       /* complete with somthing you can create or replace */
+       /* complete with something you can create or replace */
        else if (TailMatches("CREATE", "OR", "REPLACE"))
                COMPLETE_WITH("FUNCTION", "PROCEDURE", "LANGUAGE", "RULE", "VIEW",
                                          "AGGREGATE", "TRANSFORM");
index bbaf4503c3b25ad047f0d31e9ceaeba1e9566d3d..d921b974aaf140b9ded6fa04d3c065d2f9582e55 100644 (file)
@@ -819,7 +819,7 @@ rfmtlong(long lng_val, const char *fmt, char *outbuf)
                                sign = 1;
                        if (leftalign)
                        {
-                               /* can't use strncat(,,0) here, Solaris would freek out */
+                               /* can't use strncat(,,0) here, Solaris would freak out */
                                if (sign)
                                        if (signdone)
                                        {
index 5b3c9a71e30ac77a91bebffd30244762ebbb4891..48ba50bbce3547382444572b07622ef3f01b1a7f 100644 (file)
@@ -17,7 +17,7 @@
 #include "pgtypeslib_extern.h"
 
 /* copy&pasted from .../src/backend/utils/adt/datetime.c
- * and changesd struct pg_tm to struct tm
+ * and changed struct pg_tm to struct tm
  */
 static void
 AdjustFractSeconds(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale)
@@ -35,7 +35,7 @@ AdjustFractSeconds(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale
 
 
 /* copy&pasted from .../src/backend/utils/adt/datetime.c
- * and changesd struct pg_tm to struct tm
+ * and changed struct pg_tm to struct tm
  */
 static void
 AdjustFractDays(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale)
@@ -88,7 +88,7 @@ ISO8601IntegerWidth(const char *fieldstart)
 
 
 /* copy&pasted from .../src/backend/utils/adt/datetime.c
- * and changesd struct pg_tm to struct tm
+ * and changed struct pg_tm to struct tm
  */
 static inline void
 ClearPgTm(struct /* pg_ */ tm *tm, fsec_t *fsec)
@@ -104,7 +104,7 @@ ClearPgTm(struct /* pg_ */ tm *tm, fsec_t *fsec)
 
 /* copy&pasted from .../src/backend/utils/adt/datetime.c
  *
- * * changesd struct pg_tm to struct tm
+ * * changed struct pg_tm to struct tm
  *
  * * Made the function static
  */
@@ -311,7 +311,7 @@ DecodeISO8601Interval(char *str,
 /* copy&pasted from .../src/backend/utils/adt/datetime.c
  * with 3 exceptions
  *
- *     * changesd struct pg_tm to struct tm
+ *     * changed struct pg_tm to struct tm
  *
  *     * ECPG code called this without a 'range' parameter
  *       removed 'int range' from the argument list and