Fix recently introduced typos
authorDaniel Gustafsson <[email protected]>
Fri, 11 Apr 2025 20:17:12 +0000 (22:17 +0200)
committerDaniel Gustafsson <[email protected]>
Fri, 11 Apr 2025 20:17:12 +0000 (22:17 +0200)
This fixes typos in docs and comments introduced during the v18
development cycle, to keep them from ending up in backbranches.

Author: Jacob Brazeal <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: https://postgr.es/m/CA+COZaCgGua25f2hSrjrDLJcJJAHkwoKgTTqUy-wyL1=64JNjw@mail.gmail.com

doc/src/sgml/indexam.sgml
src/backend/statistics/attribute_stats.c
src/backend/storage/lmgr/lwlock.c
src/backend/utils/activity/pgstat_backend.c
src/backend/utils/cache/inval.c
src/tools/testwrap

index d5adb58c163c020153500b14e9b1d1dd7a9d558f..1aa4741a8eaeecf7a2a99df09761ea0aeaf6b34a 100644 (file)
@@ -895,7 +895,7 @@ amtranslatestrategy (StrategyNumber strategy, Oid opfamily, Oid opcintype);
 StrategyNumber
 amtranslatecmptype (CompareType cmptype, Oid opfamily, Oid opcintype);
 </programlisting>
-   These functions, if implemented, will be called by the planer and executor
+   These functions, if implemented, will be called by the planner and executor
    to convert between fixed <type>CompareType</type> values and the specific
    strategy numbers used by the access method.  These functions can be
    implemented by access methods that implement functionality similar to the
index f5eb17ba42d5f3a5dc470e160b9ec602a656e07e..ab198076401b0a853df3645584c96f69ee45bcb0 100644 (file)
@@ -547,7 +547,7 @@ get_attr_expr(Relation rel, int attnum)
        return NULL;
 
    /*
-    * The index attnum points directly to a relation attnum, then it's no an
+    * The index attnum points directly to a relation attnum, then it's not an
     * expression attribute.
     */
    if (rel->rd_index->indkey.values[attnum - 1] != 0)
index dc4d96c16afb614659cc87178ff9e4f1c6012b2d..13772c045686dc1599519e24b17b477c099a31eb 100644 (file)
@@ -1832,7 +1832,7 @@ LWLockDisownInternal(LWLock *lock)
 
 /*
  * Helper function to release lock, shared between LWLockRelease() and
- * LWLockeleaseDisowned().
+ * LWLockReleaseDisowned().
  */
 static void
 LWLockReleaseInternal(LWLock *lock, LWLockMode mode)
index f6aaf589866741cadc9f8d677b84bd4a48606090..51256277e8d37ff06f38a0d1f9af6b5aaf7bbe7e 100644 (file)
@@ -100,7 +100,7 @@ pgstat_fetch_stat_backend(ProcNumber procNumber)
 /*
  * Returns statistics of a backend by pid.
  *
- * This routine includes sanity checks to ensire that the backend exists and
+ * This routine includes sanity checks to ensure that the backend exists and
  * is running.  "bktype" can be optionally defined to return the BackendType
  * of the backend whose statistics are returned.
  */
index 4eb67720737e8d2496bfc0fa9e6399a62e1c6b69..4893dbdd7c8b70b9bff93c005aa7916ab0531f51 100644 (file)
@@ -1744,7 +1744,7 @@ CacheInvalidateSmgr(RelFileLocatorBackend rlocator)
 
    /* verify optimization stated above stays valid */
    StaticAssertStmt(MAX_BACKENDS_BITS <= 23,
-                    "MAX_BACKEND_BITS is too big for inval.c");
+                    "MAX_BACKENDS_BITS is too big for inval.c");
 
    msg.sm.id = SHAREDINVALSMGR_ID;
    msg.sm.backend_hi = rlocator.backend >> 16;
index 21105146c9d6956cb677bce4564a27d66867f745..02f1951ad7e949d77cb2a347b6c9141a09abf598 100755 (executable)
@@ -43,7 +43,7 @@ env_dict = {**os.environ,
             'TESTLOGDIR': os.path.join(testdir, 'log')}
 
 
-# The configuration time value of PG_TEST_EXTRA is supplied via arguement
+# The configuration time value of PG_TEST_EXTRA is supplied via argument
 # --pg-test-extra. But it can be overridden by environment variable
 # PG_TEST_EXTRA at the time of running a test. Hence use value from arguments
 # only if PG_TEST_EXTRA is not set in the test environment, which already