Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6aab1f4

Browse files
committed
Fix various typos and grammar errors in comments.
Author: Dmitriy OlshevskiyDiscussion: 553D00A6.4090205@bk.ru
1 parent9fe1d9a commit6aab1f4

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-
* Createan palloc'd copy of a BrinTuple.
307+
* Createa palloc'd copy of a BrinTuple.
308308
*/
309309
BrinTuple*
310310
brin_copy_tuple(BrinTuple*tuple,Sizelen)

‎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 isan unique index. Dead tuples
43+
* spool2 is needed only when the index isa 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 finishedtransfering state to the prepared
294+
* This is called after we have finishedtransferring 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
AclObjectKindacl_kind;/* ACL_KIND_* of this object type */
101101
boolis_nsp_name_unique;/* can the nsp/name combination (or
102102
* name alone, if there's no
103-
* namespace) be consideredan unique
103+
* namespace) be considereda 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) asan unique identifier.
3244+
* the schema name, if any) asa 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 thetheWITH 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-
* correspondencebetwen the postmaster's private list and the array
133+
* correspondencebetween 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 somesuperflous work.
1600+
* snapshot is valid as well, we'll just have done somesuperfluous 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-
* Registera invalidation event for MVCC scans against a given catalog.
519+
* Registeran invalidation event for MVCC scans against a given catalog.
520520
* Only needed for catalogs that don't have catcaches.
521521
*/
522522
staticvoid

‎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 @@ charexclusiveCleanupFileName[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-
*bytransfering multiple tablespaces in parallel
178+
*bytransferring 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 foran user defined attribute.
49+
*Assumes the attribute number is fora user defined attribute.
5050
*/
5151
#defineAttrNumberGetAttrOffset(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 bebesized 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'simplementaion, rathter than XEmacs's.
91+
* We follow emacs'simplementation, 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 treatsuperflous membars as NOPs,
360-
* so it's just code space.
359+
* acquire/release semantics. The CPU will treatsuperfluous membars as
360+
*NOPs,so it's just code space.
361361
*/
362362
#defineHAS_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 theparamters
326+
* - first we analyze theparameters
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 theparamter ordering
1379+
* instead of inverting the result, we invert theparameter ordering
13801380
*/
13811381
returncmp_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-
* shallocccur:
96+
* shalloccur:
9797
*
9898
* mkdir -p -m $(umask -S),u+wx $(dirname dir) && mkdir [-m mode] dir
9999
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp