]> granicus.if.org Git - postgresql/commitdiff
Fix typos and inconsistencies in code comments
authorMichael Paquier <michael@paquier.xyz>
Fri, 14 Jun 2019 00:34:34 +0000 (09:34 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 14 Jun 2019 00:34:34 +0000 (09:34 +0900)
Author: Alexander Lakhin
Discussion: https://postgr.es/m/dec6aae8-2d63-639f-4d50-20e229fb83e3@gmail.com

src/backend/access/nbtree/nbtsearch.c
src/backend/catalog/catalog.c
src/backend/commands/copy.c
src/backend/libpq/be-secure-gssapi.c
src/backend/parser/parse_target.c
src/backend/postmaster/checkpointer.c
src/backend/utils/cache/lsyscache.c
src/port/pg_bitutils.c

index 1f809c24a1166ce9b9a7cfcc97e45b18b37ba1aa..c655dadb963e655283abec94ea3f821a08ec924a 100644 (file)
@@ -424,7 +424,7 @@ _bt_binsrch(Relation rel,
 
 /*
  *
- *     bt_binsrch_insert() -- Cacheable, incremental leaf page binary search.
+ *     _bt_binsrch_insert() -- Cacheable, incremental leaf page binary search.
  *
  * Like _bt_binsrch(), but with support for caching the binary search
  * bounds.  Only used during insertion, and only on the leaf page that it
index 11936a657131f22dda6a2809d612e640211fa88a..a065419cdb28d321b843baa6496121237c9b208b 100644 (file)
@@ -383,7 +383,7 @@ GetNewOidWithIndex(Relation relation, Oid indexId, AttrNumber oidcolumn)
  * is also an unused OID within pg_class.  If the result is to be used only
  * as a relfilenode for an existing relation, pass NULL for pg_class.
  *
- * As with GetNewObjectIdWithIndex(), there is some theoretical risk of a race
+ * As with GetNewOidWithIndex(), there is some theoretical risk of a race
  * condition, but it doesn't seem worth worrying about.
  *
  * Note: we don't support using this in bootstrap mode.  All relations
index 84c54fbc708d72ad41c5db6b6351bbf617bbba1e..ac86f3d5beaf5b9ef4968cea329a4cada401f02a 100644 (file)
@@ -2626,7 +2626,7 @@ CopyMultiInsertInfoNextFreeSlot(CopyMultiInsertInfo *miinfo,
 
 /*
  * Record the previously reserved TupleTableSlot that was reserved by
- * MultiInsertInfoNextFreeSlot as being consumed.
+ * CopyMultiInsertInfoNextFreeSlot as being consumed.
  */
 static inline void
 CopyMultiInsertInfoStore(CopyMultiInsertInfo *miinfo, ResultRelInfo *rri,
index 1673b10315809e916dee5db7b602393665a809ba..ba8c0cd0f05fd03be071ae273037755c826cb8b5 100644 (file)
@@ -400,7 +400,7 @@ read_or_wait(Port *port, ssize_t len)
                {
                        /*
                         * If we got back less than zero, indicating an error, and that
-                        * wasn't just a EWOULDBOCK/EAGAIN, then give up.
+                        * wasn't just a EWOULDBLOCK/EAGAIN, then give up.
                         */
                        if (ret < 0 && !(errno == EWOULDBLOCK || errno == EAGAIN))
                                return -1;
index ef2f5b45d87cba33308d69fc14cf6880ffe8fe56..ba470366e10bd9d3d345891163be14d16591e5ae 100644 (file)
@@ -38,7 +38,7 @@ static void markTargetListOrigin(ParseState *pstate, TargetEntry *tle,
 static Node *transformAssignmentIndirection(ParseState *pstate,
                                                                                        Node *basenode,
                                                                                        const char *targetName,
-                                                                                       bool targetIsArray,
+                                                                                       bool targetIsSubscripting,
                                                                                        Oid targetTypeId,
                                                                                        int32 targetTypMod,
                                                                                        Oid targetCollation,
index 13f152b4731e7f7338dba7a73af1cbd9e4bea5c8..11bbe2c397f90d36ba6955589ce0783bec27062e 100644 (file)
@@ -1213,12 +1213,11 @@ CompactCheckpointerRequestQueue(void)
         * backwards from the end of the queue and check whether a request is
         * *preceded* by an earlier, identical request, in the hopes of doing less
         * copying.  But that might change the semantics, if there's an
-        * intervening FORGET_RELATION_FSYNC or FORGET_DATABASE_FSYNC request, so
-        * we do it this way.  It would be possible to be even smarter if we made
-        * the code below understand the specific semantics of such requests (it
-        * could blow away preceding entries that would end up being canceled
-        * anyhow), but it's not clear that the extra complexity would buy us
-        * anything.
+        * intervening SYNC_FORGET_REQUEST or SYNC_FILTER_REQUEST, so we do it
+        * this way.  It would be possible to be even smarter if we made the code
+        * below understand the specific semantics of such requests (it could blow
+        * away preceding entries that would end up being canceled anyhow), but
+        * it's not clear that the extra complexity would buy us anything.
         */
        for (n = 0; n < CheckpointerShmem->num_requests; n++)
        {
index b4f2d0f35ab692f9504d3723fdf3becda14ce9f3..c13c08a97b4871c58451a675659d34e688fdc8ce 100644 (file)
@@ -1055,7 +1055,7 @@ get_opclass_input_type(Oid opclass)
 }
 
 /*
- * get_opclass_family_and_input_type
+ * get_opclass_opfamily_and_input_type
  *
  *             Returns the OID of the operator family the opclass belongs to,
  *                             the OID of the datatype the opclass indexes
index 60fb55af53911ddbd1940a2612a633dd4494ce4e..7847e8a451cd10af3ac4b75deb53563f961699c9 100644 (file)
@@ -28,7 +28,7 @@
  * left-most the 7th bit.  The 0th entry of the array should not be used.
  *
  * Note: this is not used by the functions in pg_bitutils.h when
- * HAVE_BUILTIN_CLZ is defined, but we provide it anyway, so that
+ * HAVE__BUILTIN_CLZ is defined, but we provide it anyway, so that
  * extensions possibly compiled with a different compiler can use it.
  */
 const uint8 pg_leftmost_one_pos[256] = {
@@ -56,7 +56,7 @@ const uint8 pg_leftmost_one_pos[256] = {
  * left-most the 7th bit.  The 0th entry of the array should not be used.
  *
  * Note: this is not used by the functions in pg_bitutils.h when
- * HAVE_BUILTIN_CTZ is defined, but we provide it anyway, so that
+ * HAVE__BUILTIN_CTZ is defined, but we provide it anyway, so that
  * extensions possibly compiled with a different compiler can use it.
  */
 const uint8 pg_rightmost_one_pos[256] = {