Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9226a3b

Browse files
committed
Remove duplicated words split across lines in comments
This has been detected using some interesting tricks with sed, and the method used is mentioned in details in the discussion below. Author: Justin Pryzby Discussion: https://postgr.es/m/20180908013109.GB15350@telsasoft.com
1 parent 361844f commit 9226a3b

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

src/backend/access/gin/ginbtree.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ freeGinBtreeStack(GinBtreeStack *stack)
211211
/*
212212
* Try to find parent for current stack position. Returns correct parent and
213213
* child's offset in stack->parent. The root page is never released, to
214-
* to prevent conflict with vacuum process.
214+
* prevent conflict with vacuum process.
215215
*/
216216
static void
217217
ginFindParents(GinBtree btree, GinBtreeStack *stack)

src/backend/access/transam/twophase.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ RecreateTwoPhaseFile(TransactionId xid, void *content, int len)
17261726
* possible that GXACTs that were valid at checkpoint start will no longer
17271727
* exist if we wait a little bit. With typical checkpoint settings this
17281728
* will be about 3 minutes for an online checkpoint, so as a result we
1729-
* we expect that there will be no GXACTs that need to be copied to disk.
1729+
* expect that there will be no GXACTs that need to be copied to disk.
17301730
*
17311731
* If a GXACT remains valid across multiple checkpoints, it will already
17321732
* be on disk so we don't bother to repeat that write.

src/backend/access/transam/xlogarchive.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ ExecuteRecoveryCommand(const char *command, const char *commandName, bool failOn
422422
/*
423423
* A file was restored from the archive under a temporary filename (path),
424424
* and now we want to keep it. Rename it under the permanent filename in
425-
* in pg_wal (xlogfname), replacing any existing file with the same name.
425+
* pg_wal (xlogfname), replacing any existing file with the same name.
426426
*/
427427
void
428428
KeepFileRestoredFromArchive(const char *path, const char *xlogfname)

src/backend/commands/analyze.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2888,7 +2888,7 @@ analyze_mcv_list(int *mcv_counts,
28882888
* significantly more common than the estimated selectivity they would
28892889
* have if they weren't in the list. All non-MCV values are assumed to be
28902890
* equally common, after taking into account the frequencies of all the
2891-
* the values in the MCV list and the number of nulls (c.f. eqsel()).
2891+
* values in the MCV list and the number of nulls (c.f. eqsel()).
28922892
*
28932893
* Here sumcount tracks the total count of all but the last (least common)
28942894
* value in the MCV list, allowing us to determine the effect of excluding

src/backend/commands/seclabel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ SetSharedSecurityLabel(const ObjectAddress *object,
321321
/*
322322
* SetSecurityLabel attempts to set the security label for the specified
323323
* provider on the specified object to the given value. NULL means that any
324-
* any existing label should be deleted.
324+
* existing label should be deleted.
325325
*/
326326
void
327327
SetSecurityLabel(const ObjectAddress *object,

src/backend/libpq/be-secure-openssl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -956,8 +956,8 @@ info_cb(const SSL *ssl, int type, int args)
956956
* precomputed.
957957
*
958958
* Since few sites will bother to create a parameter file, we also
959-
* also provide a fallback to the parameters provided by the
960-
* OpenSSL project.
959+
* provide a fallback to the parameters provided by the OpenSSL
960+
* project.
961961
*
962962
* These values can be static (once loaded or computed) since the
963963
* OpenSSL library can efficiently generate random keys from the

src/backend/partitioning/partprune.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,7 @@ get_matching_range_bounds(PartitionPruneContext *context,
24832483

24842484
/*
24852485
* If the query does not constrain all key columns, we'll need to scan the
2486-
* the default partition, if any.
2486+
* default partition, if any.
24872487
*/
24882488
if (nvalues < partnatts)
24892489
result->scan_default = partition_bound_has_default(boundinfo);

src/backend/storage/ipc/barrier.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ BarrierInit(Barrier *barrier, int participants)
115115
*
116116
* While waiting, pg_stat_activity shows a wait_event_class and wait_event
117117
* controlled by the wait_event_info passed in, which should be a value from
118-
* from one of the WaitEventXXX enums defined in pgstat.h.
118+
* one of the WaitEventXXX enums defined in pgstat.h.
119119
*
120120
* Return true in one arbitrarily chosen participant. Return false in all
121121
* others. The return code can be used to elect one participant to execute a

src/backend/utils/adt/datetime.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,8 @@ DecodeDateTime(char **field, int *ftype, int nf,
11441144
* Is this a YMD or HMS specification, or a year number?
11451145
* YMD and HMS are required to be six digits or more, so
11461146
* if it is 5 digits, it is a year. If it is six or more
1147-
* more digits, we assume it is YMD or HMS unless no date
1148-
* and no time values have been specified. This forces 6+
1147+
* digits, we assume it is YMD or HMS unless no date and
1148+
* no time values have been specified. This forces 6+
11491149
* digit years to be at the end of the string, or to use
11501150
* the ISO date specification.
11511151
*/

0 commit comments

Comments
 (0)