Prefer spelling "cacheable" over "cachable".
authorThomas Munro <[email protected]>
Wed, 12 Nov 2025 01:20:49 +0000 (14:20 +1300)
committerThomas Munro <[email protected]>
Wed, 12 Nov 2025 01:35:16 +0000 (14:35 +1300)
Previously we had both in code and comments.  Keep the more common and
accepted variant.

Author: Chao Li <[email protected]>
Reviewed-by: Peter Smith <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/5EBF1771-0566-4D08-9F9B-CDCDEF4BDC98@gmail.com

src/backend/access/heap/heapam.c
src/backend/utils/cache/catcache.c

index 36fee9c994e43d9293e99adc49996f51f870ae6b..4b0c49f4bb0b77cbe4e5ed29164d548eb6e76129 100644 (file)
@@ -2248,7 +2248,7 @@ heap_insert(Relation relation, HeapTuple tup, CommandId cid,
        ReleaseBuffer(vmbuffer);
 
    /*
-    * If tuple is cachable, mark it for invalidation from the caches in case
+    * If tuple is cacheable, mark it for invalidation from the caches in case
     * we abort.  Note it is OK to do this after releasing the buffer, because
     * the heaptup data structure is all in local memory, not in the shared
     * buffer.
@@ -2700,7 +2700,7 @@ heap_multi_insert(Relation relation, TupleTableSlot **slots, int ntuples,
    CheckForSerializableConflictIn(relation, NULL, InvalidBlockNumber);
 
    /*
-    * If tuples are cachable, mark them for invalidation from the caches in
+    * If tuples are cacheable, mark them for invalidation from the caches in
     * case we abort.  Note it is OK to do this after releasing the buffer,
     * because the heaptuples data structure is all in local memory, not in
     * the shared buffer.
index 30ac1bd91be432e40bc94f1f15207b5c7eb61799..b6408d46e2b466c507826fbba0389c7cbab75258 100644 (file)
@@ -829,7 +829,7 @@ ResetCatalogCachesExt(bool debug_discard)
  * kinds of trouble if a cache flush occurs while loading cache entries.
  * We now avoid the need to do it by copying cc_tupdesc out of the relcache,
  * rather than relying on the relcache to keep a tupdesc for us.  Of course
- * this assumes the tupdesc of a cachable system table will not change...)
+ * this assumes the tupdesc of a cacheable system table will not change...)
  */
 void
 CatalogCacheFlushCatalog(Oid catId)