Fix duplicate words in comments
authorDaniel Gustafsson <[email protected]>
Mon, 4 Oct 2021 13:12:57 +0000 (15:12 +0200)
committerDaniel Gustafsson <[email protected]>
Mon, 4 Oct 2021 13:12:57 +0000 (15:12 +0200)
Remove accidentally duplicated words in code comments.

Author: Dagfinn Ilmari Mannsåker <[email protected]>
Discussion: https://postgr.es/m/[email protected]

src/backend/access/transam/parallel.c
src/backend/catalog/heap.c
src/backend/commands/copyfromparse.c
src/backend/partitioning/partdesc.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/ipc/standby.c
src/include/access/tableam.h

index 5fdcff2a3b35e856e99fd1e60c7c6c8328b15fb8..bb1881f57361dad5a3b96f634343906a87a672e2 100644 (file)
@@ -1534,7 +1534,7 @@ ParallelWorkerReportLastRecEnd(XLogRecPtr last_xlog_end)
  *
  * Also explicitly detach from dsm segment so that subsystems using
  * on_dsm_detach() have a chance to send stats before the stats subsystem is
- * shut down as as part of a before_shmem_exit() hook.
+ * shut down as part of a before_shmem_exit() hook.
  *
  * One might think this could instead be solved by carefully ordering the
  * attaching to dsm segments, so that the pgstats segments get detached from
index 83746d3fd91a4662e063aedc462c78eafeb66344..5898203972b2250d5f268febf560e6461b073246 100644 (file)
@@ -3547,7 +3547,7 @@ restart:
                /*
                 * If this constraint has a parent constraint which we have not seen
                 * yet, keep track of it for the second loop, below.  Tracking parent
-                * constraints allows us to climb up to the top-level level constraint
+                * constraints allows us to climb up to the top-level constraint
                 * and look for all possible relations referencing the partitioned
                 * table.
                 */
index fdf57f155600bff915221bdd687ce2c4331ca666..aac10165ecf020e2fecfda40fc5178a0158ab9d6 100644 (file)
@@ -37,7 +37,7 @@
  * the data is valid in the current encoding.
  *
  * In binary mode, the pipeline is much simpler.  Input is loaded into
- * into 'raw_buf', and encoding conversion is done in the datatype-specific
+ * 'raw_buf', and encoding conversion is done in the datatype-specific
  * receive functions, if required.  'input_buf' and 'line_buf' are not used,
  * but 'attribute_buf' is used as a temporary buffer to hold one attribute's
  * data when it's passed the receive function.
index 9a9d6a9643f7f73cf395f01035bdf0e5acc6e94d..fb49747f6e432cf1efb0af31816a5a7ca8ad440b 100644 (file)
@@ -91,7 +91,7 @@ RelationGetPartitionDesc(Relation rel, bool omit_detached)
         * cached descriptor too.  We determine that based on the pg_inherits.xmin
         * that was saved alongside that descriptor: if the xmin that was not in
         * progress for that active snapshot is also not in progress for the
-        * current active snapshot, then we can use use it.  Otherwise build one
+        * current active snapshot, then we can use it.  Otherwise build one
         * from scratch.
         */
        if (omit_detached &&
index e88e4e918b0951b263852a0aaf2e7d0584b15e65..08ebabfe96a1788e1e337cc52943ef489214cdd8 100644 (file)
@@ -666,7 +666,7 @@ ReadRecentBuffer(RelFileNode rnode, ForkNumber forkNum, BlockNumber blockNum,
                {
                        /*
                         * It's now safe to pin the buffer.  We can't pin first and ask
-                        * questions later, because because it might confuse code paths
+                        * questions later, because it might confuse code paths
                         * like InvalidateBuffer() if we pinned a random non-matching
                         * buffer.
                         */
index 077251c1a651120769281b3ea75cded2bdb96e43..b17326bc200bd9c4a018a4d5eeaf5d4802760839 100644 (file)
@@ -130,7 +130,7 @@ InitRecoveryTransactionEnvironment(void)
  *
  * This must be called even in shutdown of startup process if transaction
  * tracking has been initialized. Otherwise some locks the tracked
- * transactions were holding will not be released and and may interfere with
+ * transactions were holding will not be released and may interfere with
  * the processes still running (but will exit soon later) at the exit of
  * startup process.
  */
index 9f1e4a1ac9693326b923162c9bd7fbba445c57b8..4aff18215bab0e94bfdfcd53d0783b4e5871b789 100644 (file)
@@ -157,7 +157,7 @@ typedef struct TM_FailureData
  * work, too.  This is a little like bottom-up deletion, but not too much.
  * The tableam will only perform speculative work when it's practically free
  * to do so in passing for simple deletion caller (while always performing
- * whatever work is is needed to enable knowndeletable/LP_DEAD index tuples to
+ * whatever work is needed to enable knowndeletable/LP_DEAD index tuples to
  * be deleted within index AM).  This is the real reason why it's possible for
  * simple index deletion caller to specify knowndeletable = false up front
  * (this means "check if it's possible for me to delete corresponding index