summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Paquier2021-04-09 04:53:07 +0000
committerMichael Paquier2021-04-09 04:53:07 +0000
commit609b0652af00374b89411ea2613fd5bb92bca92c (patch)
treef21a820ed35b1ce3c67f2a9da1b5618f805ecea2 /src/include
parent796092fb84c08162ae803e83a13aa8bd6d9b23d0 (diff)
Fix typos and grammar in documentation and code comments
Comment fixes are applied on HEAD, and documentation improvements are applied on back-branches where needed. Author: Justin Pryzby Discussion: https://postgr.es/m/20210408164008.GJ6592@telsasoft.com Backpatch-through: 9.6
Diffstat (limited to 'src/include')
-rw-r--r--src/include/lib/sort_template.h2
-rw-r--r--src/include/utils/guc.h13
2 files changed, 7 insertions, 8 deletions
diff --git a/src/include/lib/sort_template.h b/src/include/lib/sort_template.h
index 771c789ced0..24d6d0006cf 100644
--- a/src/include/lib/sort_template.h
+++ b/src/include/lib/sort_template.h
@@ -241,7 +241,7 @@ ST_SCOPE void ST_SORT(ST_ELEMENT_TYPE *first, size_t n
/*
* Find the median of three values. Currently, performance seems to be best
- * if the the comparator is inlined here, but the med3 function is not inlined
+ * if the comparator is inlined here, but the med3 function is not inlined
* in the qsort function.
*/
static pg_noinline ST_ELEMENT_TYPE *
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 1892c7927b4..7894940741e 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -90,13 +90,12 @@ typedef enum
* dividing line between "interactive" and "non-interactive" sources for
* error reporting purposes.
*
- * PGC_S_TEST is used when testing values to be used later ("doit" will always
- * be false, so this never gets stored as the actual source of any value).
- * For example, ALTER DATABASE/ROLE tests proposed per-database or per-user
- * defaults this way, and CREATE FUNCTION tests proposed function SET clauses
- * this way. This is an interactive case, but it needs its own source value
- * because some assign hooks need to make different validity checks in this
- * case. In particular, references to nonexistent database objects generally
+ * PGC_S_TEST is used when testing values to be used later. For example,
+ * ALTER DATABASE/ROLE tests proposed per-database or per-user defaults this
+ * way, and CREATE FUNCTION tests proposed function SET clauses this way.
+ * This is an interactive case, but it needs its own source value because
+ * some assign hooks need to make different validity checks in this case.
+ * In particular, references to nonexistent database objects generally
* shouldn't throw hard errors in this case, at most NOTICEs, since the
* objects might exist by the time the setting is used for real.
*