aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2023-10-09 09:18:47 +0530
committerAmit Kapila <akapila@postgresql.org>2023-10-09 09:18:47 +0530
commit7cc2f59dd57ab275497ae42a4f98e7936e1e3723 (patch)
treebc17856e89124532e35f545435ea4e9149c36294 /src
parentd8a295389baee766df882f8f934e205b5978b529 (diff)
downloadpostgresql-7cc2f59dd57ab275497ae42a4f98e7936e1e3723.tar.gz
postgresql-7cc2f59dd57ab275497ae42a4f98e7936e1e3723.zip
Remove duplicate words in docs and code comments.
Additionally, add a missing "the" in a couple of places. Author: Vignesh C, Dagfinn Ilmari Mannsåker Discussion: http://postgr.es/m/CALDaNm28t+wWyPfuyqEaARS810Je=dRFkaPertaLAEJYY2cWYQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/nbtree/nbtsearch.c4
-rw-r--r--src/backend/access/transam/xlogreader.c2
-rw-r--r--src/backend/executor/nodeHashjoin.c2
-rw-r--r--src/test/regress/expected/tuplesort.out4
-rw-r--r--src/test/regress/sql/tuplesort.sql4
5 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/access/nbtree/nbtsearch.c b/src/backend/access/nbtree/nbtsearch.c
index 72b052b2491..efc5284e5b1 100644
--- a/src/backend/access/nbtree/nbtsearch.c
+++ b/src/backend/access/nbtree/nbtsearch.c
@@ -1664,7 +1664,7 @@ _bt_readpage(IndexScanDesc scan, ScanDirection dir, OffsetNumber offnum)
/*
* If the result of prechecking required keys was true, then in
- * assert-enabled builds we also recheck that _bt_checkkeys()
+ * assert-enabled builds we also recheck that the _bt_checkkeys()
* result is the same.
*/
Assert(!requiredMatchedByPrecheck ||
@@ -1783,7 +1783,7 @@ _bt_readpage(IndexScanDesc scan, ScanDirection dir, OffsetNumber offnum)
/*
* If the result of prechecking required keys was true, then in
- * assert-enabled builds we also recheck that _bt_checkkeys()
+ * assert-enabled builds we also recheck that the _bt_checkkeys()
* result is the same.
*/
Assert(!requiredMatchedByPrecheck ||
diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c
index a1363e3b8f3..e0baa86bd3f 100644
--- a/src/backend/access/transam/xlogreader.c
+++ b/src/backend/access/transam/xlogreader.c
@@ -846,7 +846,7 @@ restart:
/*
* If we got here without a DecodedXLogRecord, it means we needed to
- * validate total_len before trusting it, but by now now we've done that.
+ * validate total_len before trusting it, but by now we've done that.
*/
if (decoded == NULL)
{
diff --git a/src/backend/executor/nodeHashjoin.c b/src/backend/executor/nodeHashjoin.c
index aea44a9d566..25a2d78f157 100644
--- a/src/backend/executor/nodeHashjoin.c
+++ b/src/backend/executor/nodeHashjoin.c
@@ -1306,7 +1306,7 @@ ExecParallelHashJoinNewBatch(HashJoinState *hjstate)
* The data recorded in the file for each tuple is its hash value,
* then the tuple in MinimalTuple format.
*
- * fileptr points to a batch file in one of the the hashtable arrays.
+ * fileptr points to a batch file in one of the hashtable arrays.
*
* The batch files (and their buffers) are allocated in the spill context
* created for the hashtable.
diff --git a/src/test/regress/expected/tuplesort.out b/src/test/regress/expected/tuplesort.out
index a2efa179fc1..0e8b5bf4a39 100644
--- a/src/test/regress/expected/tuplesort.out
+++ b/src/test/regress/expected/tuplesort.out
@@ -401,7 +401,7 @@ FETCH NEXT FROM c;
00000000-0000-0000-0000-000000000000
(1 row)
--- scroll beyond end end
+-- scroll beyond end
FETCH LAST FROM c;
noabort_decreasing
--------------------
@@ -498,7 +498,7 @@ FETCH NEXT FROM c;
00000000-0000-0000-0000-000000000000
(1 row)
--- scroll beyond end end
+-- scroll beyond end
FETCH LAST FROM c;
noabort_decreasing
--------------------
diff --git a/src/test/regress/sql/tuplesort.sql b/src/test/regress/sql/tuplesort.sql
index 846484d5612..658fe98dc56 100644
--- a/src/test/regress/sql/tuplesort.sql
+++ b/src/test/regress/sql/tuplesort.sql
@@ -169,7 +169,7 @@ FETCH BACKWARD FROM c;
FETCH BACKWARD FROM c;
FETCH NEXT FROM c;
--- scroll beyond end end
+-- scroll beyond end
FETCH LAST FROM c;
FETCH BACKWARD FROM c;
FETCH NEXT FROM c;
@@ -200,7 +200,7 @@ FETCH BACKWARD FROM c;
FETCH BACKWARD FROM c;
FETCH NEXT FROM c;
--- scroll beyond end end
+-- scroll beyond end
FETCH LAST FROM c;
FETCH BACKWARD FROM c;
FETCH NEXT FROM c;