diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-01-03 16:26:37 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-01-03 16:26:37 +0900 |
commit | dfaa705ce423b5c55bb5effac1835d39aeb76767 (patch) | |
tree | aa2e307a5714e4cc7c191efef39ea9f8fd1aa7e7 /src/backend | |
parent | f0e13802f196bc1044d52669ae5ef0b32e3a4db2 (diff) | |
download | postgresql-dfaa705ce423b5c55bb5effac1835d39aeb76767.tar.gz postgresql-dfaa705ce423b5c55bb5effac1835d39aeb76767.zip |
Fix typos in comments, code and documentation
While on it, newlines are removed from the end of two elog() strings.
The others are simple grammar mistakes. One comment in pg_upgrade
referred incorrectly to sequences since a7e5457.
Author: Justin Pryzby
Discussion: https://postgr.es/m/20221230231257.GI1153@telsasoft.com
Backpatch-through: 11
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/access/common/bufmask.c | 2 | ||||
-rw-r--r-- | src/backend/access/spgist/spgutils.c | 2 | ||||
-rw-r--r-- | src/backend/jit/llvm/llvmjit.c | 2 | ||||
-rw-r--r-- | src/backend/optimizer/util/tlist.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/common/bufmask.c b/src/backend/access/common/bufmask.c index ee1c6f234a2..b66caec11ff 100644 --- a/src/backend/access/common/bufmask.c +++ b/src/backend/access/common/bufmask.c @@ -78,7 +78,7 @@ mask_unused_space(Page page) if (pd_lower > pd_upper || pd_special < pd_upper || pd_lower < SizeOfPageHeaderData || pd_special > BLCKSZ) { - elog(ERROR, "invalid page pd_lower %u pd_upper %u pd_special %u\n", + elog(ERROR, "invalid page pd_lower %u pd_upper %u pd_special %u", pd_lower, pd_upper, pd_special); } diff --git a/src/backend/access/spgist/spgutils.c b/src/backend/access/spgist/spgutils.c index 45472db147b..e5b5f6c3340 100644 --- a/src/backend/access/spgist/spgutils.c +++ b/src/backend/access/spgist/spgutils.c @@ -988,7 +988,7 @@ spgproperty(Oid index_oid, int attno, /* * Currently, SP-GiST distance-ordered scans require that there be a * distance operator in the opclass with the default types. So we assume - * that if such a operator exists, then there's a reason for it. + * that if such an operator exists, then there's a reason for it. */ /* First we need to know the column's opclass. */ diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index f0bfee2d6c3..537e0c448a1 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -781,7 +781,7 @@ llvm_session_initialize(void) if (LLVMGetTargetFromTriple(llvm_triple, &llvm_targetref, &error) != 0) { - elog(FATAL, "failed to query triple %s\n", error); + elog(FATAL, "failed to query triple %s", error); } /* diff --git a/src/backend/optimizer/util/tlist.c b/src/backend/optimizer/util/tlist.c index 41402821a15..f2657cb14f1 100644 --- a/src/backend/optimizer/util/tlist.c +++ b/src/backend/optimizer/util/tlist.c @@ -871,7 +871,7 @@ apply_pathtarget_labeling_to_tlist(List *tlist, PathTarget *target) * * The outputs of this function are two parallel lists, one a list of * PathTargets and the other an integer list of bool flags indicating - * whether the corresponding PathTarget contains any evaluatable SRFs. + * whether the corresponding PathTarget contains any evaluable SRFs. * The lists are given in the order they'd need to be evaluated in, with * the "lowest" PathTarget first. So the last list entry is always the * originally given PathTarget, and any entries before it indicate evaluation |