Fix grammatical typos around possessive "its"
authorJohn Naylor <[email protected]>
Wed, 29 Jan 2025 07:28:20 +0000 (14:28 +0700)
committerJohn Naylor <[email protected]>
Wed, 29 Jan 2025 07:39:14 +0000 (14:39 +0700)
Some places spelled it "it's", which is short for "it is".
In passing, fix a couple other nearby grammatical errors.

Author: Jacob Brazeal <[email protected]>
Discussion: https://postgr.es/m/CA+COZaAO8g1KJCV0T48=CkJMjAnnfTGLWOATz+2aCh40c2Nm+g@mail.gmail.com

18 files changed:
contrib/amcheck/verify_nbtree.c
src/backend/access/spgist/spgscan.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/logical/worker.c
src/backend/replication/pgoutput/pgoutput.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lwlock.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/jsonpath_exec.c
src/backend/utils/adt/tsrank.c
src/backend/utils/sort/tuplesort.c
src/bin/pg_combinebackup/reconstruct.c
src/fe_utils/parallel_slot.c
src/include/jit/SectionMemoryManager.h
src/include/nodes/plannodes.h
src/pl/plpgsql/src/pl_exec.c
src/test/modules/test_slru/t/001_multixact.pl
src/test/recovery/t/035_standby_logical_decoding.pl

index 7f7b55d902a4c16b07f7f50d3a2c266f7762373c..aac8c74f546e200b7711bbc3c91b74d7dc87fc19 100644 (file)
@@ -2469,7 +2469,7 @@ bt_child_highkey_check(BtreeCheckState *state,
                 * So, now we traverse to the right of that cousin page and
                 * current child level page under consideration still belongs
                 * to the subtree of target's left sibling.  Thus, we need to
-                * match child's high key to it's left uncle page high key.
+                * match child's high key to its left uncle page high key.
                 * Thankfully we saved it, it's called a "low key" of target
                 * page.
                 */
index 986362a777fd0c23ab9b42db16fe9ddeee0ee2fc..53f910e9d8987bc7319deff47a4a99ab0470dce6 100644 (file)
@@ -865,7 +865,7 @@ redirect:
 
            if (SpGistPageIsLeaf(page))
            {
-               /* Page is a leaf - that is, all it's tuples are heap items */
+               /* Page is a leaf - that is, all its tuples are heap items */
                OffsetNumber max = PageGetMaxOffsetNumber(page);
 
                if (SpGistBlockIsRoot(blkno))
index 79b60df7cf0bb15e6940c17497d4ed335ec9bf57..5389eec20d27fc7faee3e2775a5418cb14096203 100644 (file)
@@ -1663,7 +1663,7 @@ ReorderBufferTruncateTXN(ReorderBuffer *rb, ReorderBufferTXN *txn, bool txn_prep
        /* Check we're not mixing changes from different transactions. */
        Assert(change->txn == txn);
 
-       /* remove the change from it's containing list */
+       /* remove the change from its containing list */
        dlist_delete(&change->node);
 
        /*
index 334bf3e7affe1dec934b272e775b3a2500ab1541..6966037d2eff3f69d134989accd3d70b80bd5b2f 100644 (file)
@@ -4092,7 +4092,7 @@ subscription_change_cb(Datum arg, int cacheid, uint32 hashvalue)
  * subxact_info_write
  *   Store information about subxacts for a toplevel transaction.
  *
- * For each subxact we store offset of it's first change in the main file.
+ * For each subxact we store offset of its first change in the main file.
  * The file is always over-written as a whole.
  *
  * XXX We should only store subxacts that were not aborted yet.
index a363c88ffc033623c7f47f93a8988d4f8ccc5041..0227fcbca3d5632b42a8f7afde1fc4d82095c411 100644 (file)
@@ -1849,7 +1849,7 @@ pgoutput_stream_stop(struct LogicalDecodingContext *ctx,
 
 /*
  * Notify downstream to discard the streamed transaction (along with all
- * it's subtransactions, if it's a toplevel transaction).
+ * its subtransactions, if it's a toplevel transaction).
  */
 static void
 pgoutput_stream_abort(struct LogicalDecodingContext *ctx,
@@ -1882,7 +1882,7 @@ pgoutput_stream_abort(struct LogicalDecodingContext *ctx,
 
 /*
  * Notify downstream to apply the streamed transaction (along with all
- * it's subtransactions).
+ * its subtransactions).
  */
 static void
 pgoutput_stream_commit(struct LogicalDecodingContext *ctx,
index 3e2f98b371ceef398c15892a47054791a1528202..11b4d1085bb417011567a20f5b19c45980222e49 100644 (file)
@@ -1323,7 +1323,7 @@ SetupLockInTable(LockMethod lockMethodTable, PGPROC *proc,
         * on our own behalf, in which case our group leader isn't changing
         * because the group leader for a process can only ever be changed by
         * the process itself; or else we are transferring a fast-path lock to
-        * the main lock table, in which case that process can't change it's
+        * the main lock table, in which case that process can't change its
         * lock group leader without first releasing all of its locks (and in
         * particular the one we are currently transferring).
         */
index 2f558ffea1489b2f91fa7b17a0f96fb8b374a98e..f1e74f184f102748ec47bfe6d1893247bb49fc93 100644 (file)
@@ -60,7 +60,7 @@
  * The attentive reader might have noticed that naively doing the above has a
  * glaring race condition: We try to lock using the atomic operations and
  * notice that we have to wait. Unfortunately by the time we have finished
- * queuing, the former locker very well might have already finished it's
+ * queuing, the former locker very well might have already finished its
  * work. That's problematic because we're now stuck waiting inside the OS.
 
  * To mitigate those races we use a two phased attempt at locking:
index 2720d3902abd7870c7c709c1f4c8bb0ffbf0e876..5bd1e01f7e4635774de1586521b14f77e823c462 100644 (file)
@@ -5561,7 +5561,7 @@ NUM_numpart_from_char(NUMProc *Np, int id, int input_len)
        }
 
        /*
-        * try read non-locale sign, it's happen only if format is not exact
+        * try read non-locale sign, which happens only if format is not exact
         * and we cannot determine sign position of MI/PL/SG, an example:
         *
         * FM9.999999MI            -> 5.01-
index 960fdec3dbac8f0610fa7f4e9317ea3db760ee24..dbab24737ef1fa030ff62be707bab47de3aabdda 100644 (file)
@@ -77,7 +77,7 @@
 #include "utils/timestamp.h"
 
 /*
- * Represents "base object" and it's "id" for .keyvalue() evaluation.
+ * Represents "base object" and its "id" for .keyvalue() evaluation.
  */
 typedef struct JsonBaseObjectInfo
 {
index 38f8505fd174857bd8158cc0a9fd95febf7399bb..e863aa586535d0604b40c260f242be72e8cfc201 100644 (file)
@@ -812,7 +812,7 @@ get_docrep(TSVector txt, QueryRepresentation *qr, int *doclen)
        qsort(doc, cur, sizeof(DocRepresentation), compareDocR);
 
        /*
-        * Join QueryItem per WordEntry and it's position
+        * Join QueryItem per WordEntry and its position
         */
        storage.pos = doc->pos;
        storage.data.query.items = palloc(sizeof(QueryItem *) * qr->query->size);
index bda1bffa3cc0a0f1b28b9d4e50e34ace35f7979c..2ef32d53a43e45faf0da49509cf8022ccd4c3457 100644 (file)
@@ -202,7 +202,7 @@ struct Tuplesortstate
    int64       maxSpace;       /* maximum amount of space occupied among sort
                                 * of groups, either in-memory or on-disk */
    bool        isMaxSpaceDisk; /* true when maxSpace is value for on-disk
-                                * space, false when it's value for in-memory
+                                * space, false when its value for in-memory
                                 * space */
    TupSortStatus maxSpaceStatus;   /* sort status when maxSpace was reached */
    LogicalTapeSet *tapeset;    /* logtape.c object for tapes in a temp file */
index 14da51cdcf4c5e62804428ee94ca955b8783d372..8acaa54ff38b46abef60cbec3556dbafcdac94b7 100644 (file)
@@ -214,7 +214,7 @@ reconstruct_from_incremental_file(char *input_filename,
             * taking no action on those blocks that generated any WAL.
             *
             * Sadly, we have no way of validating that this is really what
-            * happened, and neither does the server. From it's perspective,
+            * happened, and neither does the server.  From its perspective,
             * an unmodified block that contains data looks exactly the same
             * as a zero-filled block that never had any data: either way,
             * it's not mentioned in any WAL summary and the server has no
index b66220104e4123ab960f9dd56f7a2bea1341cb7a..253a840865e879e2421621cdeaddfb18a693d7c9 100644 (file)
@@ -347,11 +347,11 @@ connect_slot(ParallelSlotArray *sa, int slotno, const char *dbname)
  * returned allowing the connection to be reused.
  *
  * Otherwise, if any idle slot is not yet connected to any database, the slot
- * will be returned with it's connection opened using the stored cparams and
+ * will be returned with its connection opened using the stored cparams and
  * optionally the given dbname if not null.
  *
  * Otherwise, if any idle slot exists, an idle slot will be chosen and returned
- * after having it's connection disconnected and reconnected using the stored
+ * after having its connection disconnected and reconnected using the stored
  * cparams and optionally the given dbname if not null.
  *
  * Otherwise, if any slots have connections that are busy, we loop on select()
index 69e4d66e5ee3fc4f8b34e9f930151cb49a354871..6bed991bd2be9da8aa8dc76420a24321f973e840 100644 (file)
@@ -182,7 +182,7 @@ private:
     // The actual block of free memory
     sys::MemoryBlock Free;
     // If there is a pending allocation from the same reservation right before
-    // this block, store it's index in PendingMem, to be able to update the
+    // this block, store its index in PendingMem, to be able to update the
     // pending region if part of this block is allocated, rather than having to
     // create a new one
     unsigned PendingPrefixIndex;
index 9e19cdd284df21964972752d931cde71ffec00cb..6ef5d0b375936a30bc5016d2852da29dd94cffaa 100644 (file)
@@ -1148,7 +1148,7 @@ typedef struct Gather
    bool        single_copy;    /* don't execute plan more than once */
    bool        invisible;      /* suppress EXPLAIN display (for testing)? */
    Bitmapset  *initParam;      /* param id's of initplans which are referred
-                                * at gather or one of it's child node */
+                                * at gather or one of its child nodes */
 } Gather;
 
 /* ------------
@@ -1184,7 +1184,7 @@ typedef struct GatherMerge
 
    /*
     * param id's of initplans which are referred at gather merge or one of
-    * it's child node
+    * its child nodes
     */
    Bitmapset  *initParam;
 } GatherMerge;
index e5b0da04e3c4bd49ae18a1d043ba705b3b31dd5b..35cda55cf9c1b4d04f1f012b82689824911626ab 100644 (file)
@@ -4690,7 +4690,7 @@ exec_stmt_open(PLpgSQL_execstate *estate, PLpgSQL_stmt_open *stmt)
    }
 
    /* ----------
-    * Process the OPEN according to it's type.
+    * Process the OPEN according to its type.
     * ----------
     */
    if (stmt->query != NULL)
index 00179fa97813fc28fad4cc75558d260977182751..e2b567a603d31399891c218a3446c87248179531 100644 (file)
@@ -58,7 +58,7 @@ $node->safe_psql('postgres',
 );
 
 # We expect this query to hang in the critical section after generating new
-# multixact, but before filling it's offset into SLRU.
+# multixact, but before filling its offset into SLRU.
 # Running an injection point inside a critical section requires it to be
 # loaded beforehand.
 $creator->query_until(
index 16ac929928397ef656566df4fedeb40cfec50feb..7e794c5bea3dc2e0c039003147ea7c1a97051631 100644 (file)
@@ -822,7 +822,7 @@ check_pg_recvlogical_stderr($handle,
 );
 
 ##################################################
-# DROP DATABASE should drops it's slots, including active slots.
+# DROP DATABASE should drop its slots, including active slots.
 ##################################################
 
 # drop the logical slots