Fix duplicated consecutive words in comments
authorDavid Rowley <[email protected]>
Sun, 28 Apr 2024 08:03:34 +0000 (20:03 +1200)
committerDavid Rowley <[email protected]>
Sun, 28 Apr 2024 08:03:34 +0000 (20:03 +1200)
Also, fix a comment incorrectly referencing the "streaming read API".
This was renamed to "read stream" shortly before being committed.

Discussion: https://postgr.es/m/CAApHDvq-2Zdqytm_Hf3RmVf0qg5PS9jTFAJ5QTc9xH9pwvwDTA@mail.gmail.com

src/backend/access/heap/heapam.c
src/backend/access/heap/vacuumlazy.c
src/backend/catalog/namespace.c
src/backend/replication/logical/slotsync.c
src/backend/storage/smgr/smgr.c

index 4a4cf76269d606273f2414cbdaee1746af3f8b2c..32e7d3c146436b36f1b5d4a736a529ac57143c7a 100644 (file)
@@ -1122,7 +1122,7 @@ heap_beginscan(Relation relation, Snapshot snapshot,
    /*
     * Set up a read stream for sequential scans and TID range scans. This
     * should be done after initscan() because initscan() allocates the
-    * BufferAccessStrategy object passed to the streaming read API.
+    * BufferAccessStrategy object passed to the read stream API.
     */
    if (scan->rs_base.rs_flags & SO_TYPE_SEQSCAN ||
        scan->rs_base.rs_flags & SO_TYPE_TIDRANGESCAN)
index de109acc89ae400347eac5040f420ea091121a1e..0c5379666b6f59b1ca74cc0461944f6d47887862 100644 (file)
@@ -13,7 +13,7 @@
  * autovacuum_work_mem) memory space to keep track of dead TIDs.  If the
  * TID store is full, we must call lazy_vacuum to vacuum indexes (and to vacuum
  * the pages that we've pruned). This frees up the memory space dedicated to
- * to store dead TIDs.
+ * store dead TIDs.
  *
  * In practice VACUUM will often complete its initial pass over the target
  * heap relation without ever running out of space to store TIDs.  This means
index 4548a917234d09ab7a60b8b0f78c77f6da4ad610..a2510cf80c6fadf2bdd6320e7119c62ddf63ec15 100644 (file)
  * (if one exists).
  *
  * activeSearchPath is always the actually active path; it points to
- * to baseSearchPath which is the list derived from namespace_search_path.
+ * baseSearchPath which is the list derived from namespace_search_path.
  *
  * If baseSearchPathValid is false, then baseSearchPath (and other derived
  * variables) need to be recomputed from namespace_search_path, or retrieved
index 578cfce896e66d3421226ba8f36dcb00ddd366ec..39ff5fe96964b9fe9fd7ea3549d51c1fc5f1b7c1 100644 (file)
@@ -599,7 +599,7 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
  * metadata of the slot as per the data received from the primary server.
  *
  * The slot is created as a temporary slot and stays in the same state until the
- * the remote_slot catches up with locally reserved position and local slot is
+ * remote_slot catches up with locally reserved position and local slot is
  * updated. The slot is then persisted and is considered as sync-ready for
  * periodic syncs.
  *
index 100f6454e535e300bfd37a9ad5424616aa18f3bb..a691aed1f405f0116302fd2e6ad9a9154eaacb2f 100644 (file)
@@ -244,7 +244,7 @@ smgropen(RelFileLocator rlocator, ProcNumber backend)
 
 /*
  * smgrpin() -- Prevent an SMgrRelation object from being destroyed at end of
- *             of transaction
+ *             transaction
  */
 void
 smgrpin(SMgrRelation reln)