Skip to content

Commit 6aab1f4

Browse files
committed
Fix various typos and grammar errors in comments.
Author: Dmitriy Olshevskiy Discussion: 553D00A6.4090205@bk.ru
1 parent 9fe1d9a commit 6aab1f4

File tree

21 files changed

+25
-25
lines changed

21 files changed

+25
-25
lines changed

src/backend/access/brin/brin_tuple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ brin_free_tuple(BrinTuple *tuple)
304304
}
305305

306306
/*
307-
* Create an palloc'd copy of a BrinTuple.
307+
* Create a palloc'd copy of a BrinTuple.
308308
*/
309309
BrinTuple *
310310
brin_copy_tuple(BrinTuple *tuple, Size len)

src/backend/access/nbtree/nbtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef struct
4040
BTSpool *spool;
4141

4242
/*
43-
* spool2 is needed only when the index is an unique index. Dead tuples
43+
* spool2 is needed only when the index is a unique index. Dead tuples
4444
* are put into spool2 instead of spool in order to avoid uniqueness
4545
* check.
4646
*/

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ AtAbort_Twophase(void)
291291
}
292292

293293
/*
294-
* This is called after we have finished transfering state to the prepared
294+
* This is called after we have finished transferring state to the prepared
295295
* PGXACT entry.
296296
*/
297297
void

src/backend/catalog/objectaddress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ typedef struct
100100
AclObjectKind acl_kind; /* ACL_KIND_* of this object type */
101101
bool is_nsp_name_unique; /* can the nsp/name combination (or
102102
* name alone, if there's no
103-
* namespace) be considered an unique
103+
* namespace) be considered a unique
104104
* identifier for an object of this
105105
* class? */
106106
} ObjectPropertyType;
@@ -3241,7 +3241,7 @@ pg_identify_object(PG_FUNCTION_ARGS)
32413241

32423242
/*
32433243
* We only return the object name if it can be used (together with
3244-
* the schema name, if any) as an unique identifier.
3244+
* the schema name, if any) as a unique identifier.
32453245
*/
32463246
if (get_object_namensp_unique(address.classId))
32473247
{

src/backend/commands/indexcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ ComputeIndexAttrs(IndexInfo *indexInfo,
10511051
*/
10521052

10531053
/*
1054-
* A expression using mutable functions is probably wrong,
1054+
* An expression using mutable functions is probably wrong,
10551055
* since if you aren't going to get the same result for the
10561056
* same data every time, it's not clear what the index entries
10571057
* mean at all.

src/backend/executor/nodeModifyTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ ExecInsert(TupleTableSlot *slot,
304304
* inserting the record into the heap and all indexes.
305305
*
306306
* ExecWithCheckOptions will elog(ERROR) if a violation is found, so
307-
* the tuple will never be seen, if it violates the the WITH CHECK
307+
* the tuple will never be seen, if it violates the WITH CHECK
308308
* OPTION.
309309
*
310310
* ExecWithCheckOptions() will skip any WCOs which are not of

src/backend/postmaster/bgworker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ BackgroundWorkerShmemInit(void)
130130
/*
131131
* Copy contents of worker list into shared memory. Record the shared
132132
* memory slot assigned to each worker. This ensures a 1-to-1
133-
* correspondence betwen the postmaster's private list and the array
133+
* correspondence between the postmaster's private list and the array
134134
* in shared memory.
135135
*/
136136
slist_foreach(siter, &BackgroundWorkerList)

src/backend/replication/logical/snapbuild.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
15971597

15981598
/*
15991599
* We may overwrite the work from some other backend, but that's ok, our
1600-
* snapshot is valid as well, we'll just have done some superflous work.
1600+
* snapshot is valid as well, we'll just have done some superfluous work.
16011601
*/
16021602
if (rename(tmppath, path) != 0)
16031603
{

src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ LWLockDequeueSelf(LWLock *lock)
848848

849849
/*
850850
* Somebody else dequeued us and has or will wake us up. Deal with the
851-
* superflous absorption of a wakeup.
851+
* superfluous absorption of a wakeup.
852852
*/
853853

854854
/*
@@ -1183,7 +1183,7 @@ LWLockAcquireOrWait(LWLock *lock, LWLockMode mode)
11831183
{
11841184
/*
11851185
* Wait until awakened. Like in LWLockAcquire, be prepared for bogus
1186-
* wakups, because we share the semaphore with ProcWaitForSignal.
1186+
* wakeups, because we share the semaphore with ProcWaitForSignal.
11871187
*/
11881188
LOG_LWDEBUG("LWLockAcquireOrWait", lock, "waiting");
11891189

src/backend/utils/cache/inval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ RegisterRelcacheInvalidation(Oid dbId, Oid relId)
516516
/*
517517
* RegisterSnapshotInvalidation
518518
*
519-
* Register a invalidation event for MVCC scans against a given catalog.
519+
* Register an invalidation event for MVCC scans against a given catalog.
520520
* Only needed for catalogs that don't have catcaches.
521521
*/
522522
static void

src/bin/pg_archivecleanup/pg_archivecleanup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ char exclusiveCleanupFileName[MAXPGPATH]; /* the oldest file we
4646
* accessible directory. If you want to make other assumptions,
4747
* such as using a vendor-specific archive and access API, these
4848
* routines are the ones you'll need to change. You're
49-
* enouraged to submit any changes to pgsql-hackers@postgresql.org
49+
* encouraged to submit any changes to pgsql-hackers@postgresql.org
5050
* or personally to the current maintainer. Those changes may be
5151
* folded in to later versions of this program.
5252
*/

src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ main(int argc, char **argv)
603603
{"verbose", no_argument, NULL, 'v'},
604604
{"version", no_argument, NULL, 'V'},
605605
{"help", no_argument, NULL, '?'},
606-
/* connnection options */
606+
/* connection options */
607607
{"dbname", required_argument, NULL, 'd'},
608608
{"host", required_argument, NULL, 'h'},
609609
{"port", required_argument, NULL, 'p'},
@@ -670,7 +670,7 @@ main(int argc, char **argv)
670670
case 'v':
671671
verbose++;
672672
break;
673-
/* connnection options */
673+
/* connection options */
674674
case 'd':
675675
dbname = pg_strdup(optarg);
676676
break;

src/bin/pg_upgrade/parallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ win32_exec_prog(exec_thread_arg *args)
175175
* parallel_transfer_all_new_dbs
176176
*
177177
* This has the same API as transfer_all_new_dbs, except it does parallel execution
178-
* by transfering multiple tablespaces in parallel
178+
* by transferring multiple tablespaces in parallel
179179
*/
180180
void
181181
parallel_transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,

src/bin/pg_upgrade/relfilenode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ transfer_all_new_tablespaces(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
3535
user_opts.transfer_mode == TRANSFER_MODE_LINK ? "Linking" : "Copying");
3636

3737
/*
38-
* Transfering files by tablespace is tricky because a single database can
38+
* Transferring files by tablespace is tricky because a single database can
3939
* use multiple tablespaces. For non-parallel mode, we just pass a NULL
4040
* tablespace path, which matches all tablespaces. In parallel mode, we
4141
* pass the default tablespace and all user-created tablespaces and let

src/include/access/attnum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef int16 AttrNumber;
4646
* Returns the attribute offset for an attribute number.
4747
*
4848
* Note:
49-
* Assumes the attribute number is for an user defined attribute.
49+
* Assumes the attribute number is for a user defined attribute.
5050
*/
5151
#define AttrNumberGetAttrOffset(attNum) \
5252
( \

src/include/access/xact.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ typedef struct xl_xact_assignment
168168
* 'xl_xact_xinfo->xinfo'. The presence of the xinfo field itself is signalled
169169
* by a set XLOG_XACT_HAS_INFO bit in the xl_info field.
170170
*
171-
* NB: All the individual data chunks should be be sized to multiples of
171+
* NB: All the individual data chunks should be sized to multiples of
172172
* sizeof(int) and only require int32 alignment.
173173
*/
174174

src/include/mb/pg_wchar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ typedef unsigned int pg_wchar;
8888
* interoperable anyway).
8989
*
9090
* Note that XEmacs's implementation is different from what emacs does.
91-
* We follow emacs's implementaion, rathter than XEmacs's.
91+
* We follow emacs's implementation, rather than XEmacs's.
9292
*----------------------------------------------------
9393
*/
9494

src/include/storage/s_lock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ tas(volatile slock_t *lock)
356356
/*
357357
* Solaris has always run sparc processors in TSO (total store) mode, but
358358
* linux didn't use to and the *BSDs still don't. So, be careful about
359-
* acquire/release semantics. The CPU will treat superflous membars as NOPs,
360-
* so it's just code space.
359+
* acquire/release semantics. The CPU will treat superfluous membars as
360+
* NOPs, so it's just code space.
361361
*/
362362
#define HAS_TEST_AND_SET
363363

src/interfaces/ecpg/pgtypeslib/datetime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ PGTYPESdate_fmt_asc(date dDate, const char *fmtstring, char *outbuf)
323323
* PGTYPESdate_defmt_asc
324324
*
325325
* function works as follows:
326-
* - first we analyze the paramters
326+
* - first we analyze the parameters
327327
* - if this is a special case with no delimiters, add delimters
328328
* - find the tokens. First we look for numerical values. If we have found
329329
* less than 3 tokens, we check for the months' names and thereafter for

src/interfaces/ecpg/pgtypeslib/numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ PGTYPESnumeric_cmp(numeric *var1, numeric *var2)
13761376
if (var1->sign == NUMERIC_NEG && var2->sign == NUMERIC_NEG)
13771377
{
13781378
/*
1379-
* instead of inverting the result, we invert the paramter ordering
1379+
* instead of inverting the result, we invert the parameter ordering
13801380
*/
13811381
return cmp_abs(var2, var1);
13821382
}

src/port/pgmkdirp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pg_mkdir_p(char *path, int omode)
9393
/*
9494
* POSIX 1003.2: For each dir operand that does not name an existing
9595
* directory, effects equivalent to those caused by the following command
96-
* shall occcur:
96+
* shall occur:
9797
*
9898
* mkdir -p -m $(umask -S),u+wx $(dirname dir) && mkdir [-m mode] dir
9999
*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy