Fix typos in the code.
authorAmit Kapila <akapila@postgresql.org>
Thu, 8 Jan 2026 09:43:50 +0000 (09:43 +0000)
committerAmit Kapila <akapila@postgresql.org>
Thu, 8 Jan 2026 09:43:50 +0000 (09:43 +0000)
Author: "Dewei Dai" <daidewei1970@163.com>
Author: zengman <zengman@halodbtech.com>
Author: Zhiyuan Su <suzhiyuan_pg@126.com>
Discussion: https://postgr.es/m/2026010719201902382410@163.com
Discussion: https://postgr.es/m/tencent_4DC563C83443A4B1082D2BFF@qq.com
Discussion: https://postgr.es/m/44656d72.2a63.19b9b92b0a3.Coremail.suzhiyuan_pg@126.com

src/backend/replication/logical/origin.c
src/backend/utils/activity/pgstat_replslot.c
src/backend/utils/cache/lsyscache.c

index 7268d7b5e6c32fd803c5563f96b6c329959641f7..04bc704a332b78376e716aa4857160145cd1be7f 100644 (file)
@@ -15,7 +15,7 @@
  * * A facility to efficiently store and persist replication progress in an
  *      efficient and durable manner.
  *
- * Replication origin consist out of a descriptive, user defined, external
+ * Replication origin consists of a descriptive, user defined, external
  * name and a short, thus space efficient, internal 2 byte one. This split
  * exists because replication origin have to be stored in WAL and shared
  * memory and long descriptors would be inefficient.  For now only use 2 bytes
index ec161d485784fc4336f86432065bf98bb950d68f..168ef8f8f451fee15a7735ab03c83077358a461b 100644 (file)
@@ -47,9 +47,8 @@ pgstat_reset_replslot(const char *name)
 
        LWLockAcquire(ReplicationSlotControlLock, LW_SHARED);
 
-       /* Check if the slot exits with the given name. */
+       /* Check if the slot exists with the given name. */
        slot = SearchNamedReplicationSlot(name, false);
-
        if (!slot)
                ereport(ERROR,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
index 04cf19a831a7c1d53ce9e0b538ddfca352d7c58f..b924a2d900b13bb003dccfdf5b34e6c038b2378b 100644 (file)
@@ -685,7 +685,7 @@ get_op_index_interpretation(Oid opno)
                if (!get_opmethod_canorder(op_form->amopmethod))
                        continue;
 
-               /* Get the operator's comparision type */
+               /* Get the operator's comparison type */
                cmptype = IndexAmTranslateStrategy(op_form->amopstrategy,
                                                                                   op_form->amopmethod,
                                                                                   op_form->amopfamily,
@@ -729,7 +729,7 @@ get_op_index_interpretation(Oid opno)
                                if (!amroutine->amcanorder)
                                        continue;
 
-                               /* Get the operator's comparision type */
+                               /* Get the operator's comparison type */
                                cmptype = IndexAmTranslateStrategy(op_form->amopstrategy,
                                                                                                   op_form->amopmethod,
                                                                                                   op_form->amopfamily,