aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-12-09 15:20:36 +0900
committerMichael Paquier <michael@paquier.xyz>2021-12-09 15:20:36 +0900
commit5d08137076fd39694188ec4625013756aab889e1 (patch)
treee305b3fa9c81201f741f8bacbbd788eeb7319b79 /src
parent5e97905a2c764d4ca36f5c6cccd0ebbf157b9df4 (diff)
downloadpostgresql-5d08137076fd39694188ec4625013756aab889e1.tar.gz
postgresql-5d08137076fd39694188ec4625013756aab889e1.zip
Fix some typos with {a,an}
One of the changes impacts the documentation, so backpatch. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+Pu6+c+r3mY24VT7u+H+E_s6vMr5OdRiZ8NT3EOa-E5Lmw@mail.gmail.com Backpatch-through: 14
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/table/toast_helper.c2
-rw-r--r--src/backend/catalog/pg_depend.c2
-rw-r--r--src/backend/jit/llvm/llvmjit_error.cpp2
-rw-r--r--src/backend/replication/logical/reorderbuffer.c6
4 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/access/table/toast_helper.c b/src/backend/access/table/toast_helper.c
index 53f78f9c3ef..013236b73dd 100644
--- a/src/backend/access/table/toast_helper.c
+++ b/src/backend/access/table/toast_helper.c
@@ -33,7 +33,7 @@
* All of these arrays should have a length equal to tupleDesc->natts.
*
* On return, toast_flags and toast_attr will have been initialized.
- * toast_flags is just a single uint8, but toast_attr is an caller-provided
+ * toast_flags is just a single uint8, but toast_attr is a caller-provided
* array with a length equal to tupleDesc->natts. The caller need not
* perform any initialization of the array before calling this function.
*/
diff --git a/src/backend/catalog/pg_depend.c b/src/backend/catalog/pg_depend.c
index 07bcdc463a3..5f37bf6d10b 100644
--- a/src/backend/catalog/pg_depend.c
+++ b/src/backend/catalog/pg_depend.c
@@ -180,7 +180,7 @@ recordMultipleDependencies(const ObjectAddress *depender,
* Passing false is a guarantee that the object is newly created, and so
* could not already be a member of any extension.
*
- * Note: isReplace = true is typically used when updating a object in
+ * Note: isReplace = true is typically used when updating an object in
* CREATE OR REPLACE and similar commands. The net effect is that if an
* extension script uses such a command on a pre-existing free-standing
* object, the object will be absorbed into the extension. If the object
diff --git a/src/backend/jit/llvm/llvmjit_error.cpp b/src/backend/jit/llvm/llvmjit_error.cpp
index daefb3e1fd9..f4720732a39 100644
--- a/src/backend/jit/llvm/llvmjit_error.cpp
+++ b/src/backend/jit/llvm/llvmjit_error.cpp
@@ -84,7 +84,7 @@ llvm_leave_fatal_on_oom(void)
}
/*
- * Are we currently in an fatal-on-oom section? Useful to skip cleanup in case
+ * Are we currently in a fatal-on-oom section? Useful to skip cleanup in case
* of errors.
*/
bool
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 46e66608cf0..7aa5647a2c6 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -452,7 +452,7 @@ ReorderBufferReturnTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
}
/*
- * Get an fresh ReorderBufferChange.
+ * Get a fresh ReorderBufferChange.
*/
ReorderBufferChange *
ReorderBufferGetChange(ReorderBuffer *rb)
@@ -558,7 +558,7 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
}
/*
- * Free an ReorderBufferTupleBuf.
+ * Free a ReorderBufferTupleBuf.
*/
void
ReorderBufferReturnTupleBuf(ReorderBuffer *rb, ReorderBufferTupleBuf *tuple)
@@ -639,7 +639,7 @@ ReorderBufferTXNByXid(ReorderBuffer *rb, TransactionId xid, bool create,
}
/*
- * If the cache wasn't hit or it yielded an "does-not-exist" and we want
+ * If the cache wasn't hit or it yielded a "does-not-exist" and we want
* to create an entry.
*/