postgres.git / summary / log / commit / refs
commit 4d65e16a6ff609701a8780d3cddbae02c6e20926
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Dec 16 14:34:56 2014 +0000
First released in: 9.5.0, 9.3.6, 9.4.1
Misc comment typo fixes.
Backpatch the applicable parts, just to make backpatching future patches
easier.
src/backend/lib/binaryheap.c | 2 +-
src/backend/replication/walsender.c | 2 +-
src/include/access/brin_tuple.h | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/backend/lib/binaryheap.c b/src/backend/lib/binaryheap.c
index 24ba55b4514..91555925c72 100644
--- a/src/backend/lib/binaryheap.c
+++ b/src/backend/lib/binaryheap.c
@@ -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
*
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 5937cbbb026..019ae6a6536 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -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())
diff --git a/src/include/access/brin_tuple.h b/src/include/access/brin_tuple.h
index 00f55e7a2bf..5ddc28d27f7 100644
--- a/src/include/access/brin_tuple.h
+++ b/src/include/access/brin_tuple.h
@@ -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 */
[parent: da9f6a78ef84]