aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2016-07-18 18:46:57 +0200
committerMagnus Hagander <magnus@hagander.net>2016-07-18 18:46:57 +0200
commit55d57359f2ebebabd0387b437c9e3ef80312582f (patch)
treeb84d17199d9892f78898efe260b956ab070c2d66 /src
parent7d676065690d5101d95a6b34797ee2a93514a7c3 (diff)
downloadpostgresql-55d57359f2ebebabd0387b437c9e3ef80312582f.tar.gz
postgresql-55d57359f2ebebabd0387b437c9e3ef80312582f.zip
Fix typos in comments and debug message
Antonin Houska
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/logical.c4
-rw-r--r--src/backend/replication/logical/reorderbuffer.c4
-rw-r--r--src/backend/replication/logical/snapbuild.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c
index 7c8a777b339..ecf9a033180 100644
--- a/src/backend/replication/logical/logical.c
+++ b/src/backend/replication/logical/logical.c
@@ -281,7 +281,7 @@ CreateInitDecodingContext(char *plugin,
LWLockRelease(ProcArrayLock);
/*
- * tell the snapshot builder to only assemble snapshot once reaching the a
+ * tell the snapshot builder to only assemble snapshot once reaching the
* running_xact's record with the respective xmin.
*/
xmin_horizon = slot->data.catalog_xmin;
@@ -880,7 +880,7 @@ LogicalIncreaseRestartDecodingForSlot(XLogRecPtr current_lsn, XLogRecPtr restart
}
/*
- * Handle a consumer's conformation having received all changes up to lsn.
+ * Handle a consumer's confirmation having received all changes up to lsn.
*/
void
LogicalConfirmReceivedLocation(XLogRecPtr lsn)
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 12e01edb3f7..77375d91b28 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -466,8 +466,8 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
/*
* Most tuples are below MaxHeapTupleSize, so we use a slab allocator for
* those. Thus always allocate at least MaxHeapTupleSize. Note that tuples
- * tuples generated for oldtuples can be bigger, as they don't have
- * out-of-line toast columns.
+ * generated for oldtuples can be bigger, as they don't have out-of-line
+ * toast columns.
*/
if (alloc_len < MaxHeapTupleSize)
alloc_len = MaxHeapTupleSize;
diff --git a/src/backend/replication/logical/snapbuild.c b/src/backend/replication/logical/snapbuild.c
index b4dc617a8c9..b5fa3dbbc0b 100644
--- a/src/backend/replication/logical/snapbuild.c
+++ b/src/backend/replication/logical/snapbuild.c
@@ -901,7 +901,7 @@ SnapBuildEndTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid)
/*
* NB: This handles subtransactions correctly even if we started from
* suboverflowed xl_running_xacts because we only keep track of toplevel
- * transactions. Since the latter are always are allocated before their
+ * transactions. Since the latter are always allocated before their
* subxids and since they end at the same time it's sufficient to deal
* with them here.
*/
@@ -981,7 +981,7 @@ SnapBuildCommitTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid,
* we reached consistency.
*/
forced_timetravel = true;
- elog(DEBUG1, "forced to assume catalog changes for xid %u because it was running to early", xid);
+ elog(DEBUG1, "forced to assume catalog changes for xid %u because it was running too early", xid);
}
for (nxact = 0; nxact < nsubxacts; nxact++)