]> granicus.if.org Git - postgresql/commitdiff
Misc comment typo fixes.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 16 Dec 2014 14:34:56 +0000 (16:34 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 16 Dec 2014 14:37:46 +0000 (16:37 +0200)
Backpatch the applicable parts, just to make backpatching future patches
easier.

src/backend/lib/binaryheap.c
src/backend/replication/walsender.c
src/include/access/brin_tuple.h

index 24ba55b45143a47fcd03b5a76fd39f3dc213a8f6..91555925c722b57734f9c745ee6665a8823ebd3e 100644 (file)
@@ -1,7 +1,7 @@
 /*-------------------------------------------------------------------------
  *
  * binaryheap.c
- *       A simple binary heap implementaion
+ *       A simple binary heap implementation
  *
  * Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group
  *
index 5937cbbb026b8443f72687b30d14ee589b068f6c..019ae6a6536657e616b0caf2b3de3d1555ddc874 100644 (file)
@@ -939,7 +939,7 @@ StartLogicalReplication(StartReplicationCmd *cmd)
 
        /*
         * Force a disconnect, so that the decoding code doesn't need to care
-        * about a eventual switch from running in recovery, to running in a
+        * about an eventual switch from running in recovery, to running in a
         * normal environment. Client code is expected to handle reconnects.
         */
        if (am_cascading_walsender && !RecoveryInProgress())
index 00f55e7a2bfdf632fd7c91812f2d730081f9d925..5ddc28d27f75028f6f5baab4b17fcdf719a51e06 100644 (file)
@@ -24,7 +24,7 @@
 typedef struct BrinValues
 {
        AttrNumber      bv_attno;               /* index attribute number */
-       bool            bv_hasnulls;    /* is there any nulls in the page range? */
+       bool            bv_hasnulls;    /* are there any nulls in the page range? */
        bool            bv_allnulls;    /* are all values nulls in the page range? */
        Datum      *bv_values;          /* current accumulated values */
 } BrinValues;
@@ -37,7 +37,7 @@ typedef struct BrinMemTuple
 {
        bool            bt_placeholder; /* this is a placeholder tuple */
        BlockNumber bt_blkno;           /* heap blkno that the tuple is for */
-       MemoryContext bt_context;       /* memcxt holding the dt_column values */
+       MemoryContext bt_context;       /* memcxt holding the bt_columns values */
        BrinValues      bt_columns[FLEXIBLE_ARRAY_MEMBER];
 } BrinMemTuple;
 
@@ -52,7 +52,7 @@ typedef struct BrinTuple
        BlockNumber bt_blkno;
 
        /* ---------------
-        * mt_info is laid out in the following fashion:
+        * bt_info is laid out in the following fashion:
         *
         * 7th (high) bit: has nulls
         * 6th bit: is placeholder tuple
@@ -66,7 +66,7 @@ typedef struct BrinTuple
 #define SizeOfBrinTuple (offsetof(BrinTuple, bt_info) + sizeof(uint8))
 
 /*
- * t_info manipulation macros
+ * bt_info manipulation macros
  */
 #define BRIN_OFFSET_MASK               0x1F
 /* bit 0x20 is not used at present */