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

Commit6ca86bb

Browse files
committed
Fix typos in the code
Author: Vignesh CReviewed-by: Dilip Kumar, Michael PaquierDiscussion:https://postgr.es/m/CALDaNm0ni+GAOe4+fbXiOxNrVudajMYmhJFtXGX-zBPoN8ixhw@mail.gmail.com
1 parent517bf2d commit6ca86bb

File tree

17 files changed

+23
-23
lines changed

17 files changed

+23
-23
lines changed

‎contrib/pg_trgm/trgm_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ comp_ptrgm(const void *v1, const void *v2)
467467
* ulen1: count of unique trigrams of array "trg1".
468468
* len2: length of array "trg2" and array "trg2indexes".
469469
* len: length of the array "found".
470-
* lags: set of boolean flagsparametrizing similarity calculation.
470+
* lags: set of boolean flagsparameterizing similarity calculation.
471471
* bounds: whether each trigram is left/right bound of word.
472472
*
473473
* Returns word similarity.
@@ -632,7 +632,7 @@ iterate_word_similarity(int *trg2indexes,
632632
*
633633
* str1: search pattern string, of length slen1 bytes.
634634
* str2: text in which we are looking for a word, of length slen2 bytes.
635-
* flags: set of boolean flagsparametrizing similarity calculation.
635+
* flags: set of boolean flagsparameterizing similarity calculation.
636636
*
637637
* Returns word similarity.
638638
*/

‎contrib/pgcrypto/pgp-info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pgp_get_keyid(MBuf *pgp_data, char *dst)
169169
break;
170170
casePGP_PKT_SYMENCRYPTED_SESSKEY:
171171
got_symenc_key++;
172-
/*fallthru */
172+
/*fall through */
173173
casePGP_PKT_SIGNATURE:
174174
casePGP_PKT_MARKER:
175175
casePGP_PKT_TRUST:

‎contrib/sepgsql/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sepgsql_database_post_create(Oid databaseId, const char *dtemplate)
7474
* Compute a default security label of the newly created database based on
7575
* a pair of security label of client and source database.
7676
*
77-
* XXX -uncoming version of libselinux supports to take object name to
77+
* XXX -upcoming version of libselinux supports to take object name to
7878
* handle special treatment on default security label.
7979
*/
8080
rel=table_open(DatabaseRelationId,AccessShareLock);

‎contrib/sepgsql/dml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fixup_whole_row_references(Oid relOid, Bitmapset *columns)
8585
* When user is querying on a table with children, it implicitly accesses
8686
* child tables also. So, we also need to check security label of child
8787
* tables and columns, but here is no guarantee attribute numbers are
88-
* same between the parentans children.
88+
* same between the parentand children.
8989
* It returns a bitmapset which contains attribute number of the child
9090
* table based on the given bitmapset of the parent.
9191
*/

‎contrib/sepgsql/schema.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ sepgsql_schema_post_create(Oid namespaceId)
5151
* Compute a default security label when we create a new schema object
5252
* under the working database.
5353
*
54-
* XXX -uncoming version of libselinux supports to take object name to
54+
* XXX -upcoming version of libselinux supports to take object name to
5555
* handle special treatment on default security label; such as special
5656
* label on "pg_temp" schema.
5757
*/

‎src/backend/access/common/detoast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ toast_fetch_datum(struct varlena *attr)
501501
*in the toast relation
502502
*
503503
*Note that this function supports non-compressed external datums
504-
*and compressed external datums (in which case therequrested slice
505-
*has to be a prefix, i.e. sliceoffset has to be 0).
504+
*and compressed external datums (in which case therequested slice
505+
*has to be a prefix, i.e. sliceoffset has to be 0).
506506
* ----------
507507
*/
508508
staticstructvarlena*

‎src/backend/access/nbtree/nbtsplitloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
814814
final->firstoldonright<state->newitemoff+MAX_LEAF_INTERVAL)
815815
{
816816
/*
817-
* Avoid the problem bypeforming a 50:50 split when the new item is
817+
* Avoid the problem byperforming a 50:50 split when the new item is
818818
* just to the right of the would-be "many duplicates" split point.
819819
*/
820820
final=&state->splits[0];

‎src/backend/replication/walreceiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ XLogWalRcvFlush(bool dying)
10521052
* false, this is a no-op.
10531053
*
10541054
* If 'requestReply' is true, requests the server to reply immediately upon
1055-
* receiving this message. This is used forheartbearts, when approaching
1055+
* receiving this message. This is used forheartbeats, when approaching
10561056
* wal_receiver_timeout.
10571057
*/
10581058
staticvoid

‎src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ sort_item_compare(const void *a, const void *b, void *arg)
476476
* build_column_frequencies
477477
*compute frequencies of values in each column
478478
*
479-
* This returns an array of SortItems for eachattibute the MCV is built
479+
* This returns an array of SortItems for eachattribute the MCV is built
480480
* on, with a frequency (number of occurrences) for each value. This is
481481
* then used to compute "base" frequency of MCV items.
482482
*

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ BufferAlloc(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
12081208
LWLockAcquire(newPartitionLock,LW_EXCLUSIVE);
12091209
/* remember we have no old-partition lock or tag */
12101210
oldPartitionLock=NULL;
1211-
/*this just keepsthe compiler quiet aboutuninit variables */
1211+
/*keepthe compiler quiet aboutuninitialized variables */
12121212
oldHash=0;
12131213
}
12141214

‎src/backend/storage/lmgr/proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ PublishStartupProcessInformation(void)
636636
}
637637

638638
/*
639-
* Used frombufgr to share the value of the buffer that Startup waits on,
639+
* Used frombufmgr to share the value of the buffer that Startup waits on,
640640
* or to reset the value to "not waiting" (-1). This allows processing
641641
* of recovery conflicts for buffer pins. Set is made before backends look
642642
* at this value, so locking not required, especially since the set is

‎src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct ColumnIOData
205205
Oidtypid;/* column type id */
206206
int32typmod;/* column type modifier */
207207
TypeCattypcat;/* column type category */
208-
ScalarIODatascalar_io;/* metadata cache fordirecti conversion
208+
ScalarIODatascalar_io;/* metadata cache fordirect conversion
209209
* through input function */
210210
union
211211
{

‎src/backend/utils/mmgr/freepage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ FreePageManagerPutInternal(FreePageManager *fpm, Size first_page, Size npages,
16921692

16931693
/*
16941694
* The act of allocating pages to recycle may have invalidated the
1695-
* results of our previous btreereserch, so repeat it. (We could
1695+
* results of our previous btreeresearch, so repeat it. (We could
16961696
* recheck whether any of our split-avoidance strategies that were
16971697
* not viable before now are, but it hardly seems worthwhile, so
16981698
* we don't bother. Consolidation can't be possible now if it

‎src/bin/pg_upgrade/parallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ reap_child(bool wait_for_child)
333333
thread_handles[thread_num]=thread_handles[parallel_jobs-1];
334334

335335
/*
336-
* Move last activethead arg struct into the now-dead slot, and the
336+
* Move last activethread arg struct into the now-dead slot, and the
337337
* now-dead slot to the end for reuse by the next thread. Though the
338338
* thread struct is in use by another thread, we can safely swap the
339339
* struct pointers within the array.

‎src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ psql_completion(const char *text, int start, int end)
14901490
elseif (TailMatches("CREATE"))
14911491
matches=completion_matches(text,create_command_generator);
14921492

1493-
/* complete withsomthing you can create or replace */
1493+
/* complete withsomething you can create or replace */
14941494
elseif (TailMatches("CREATE","OR","REPLACE"))
14951495
COMPLETE_WITH("FUNCTION","PROCEDURE","LANGUAGE","RULE","VIEW",
14961496
"AGGREGATE","TRANSFORM");

‎src/interfaces/ecpg/compatlib/informix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ rfmtlong(long lng_val, const char *fmt, char *outbuf)
819819
sign=1;
820820
if (leftalign)
821821
{
822-
/* can't use strncat(,,0) here, Solaris wouldfreek out */
822+
/* can't use strncat(,,0) here, Solaris wouldfreak out */
823823
if (sign)
824824
if (signdone)
825825
{

‎src/interfaces/ecpg/pgtypeslib/interval.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include"pgtypeslib_extern.h"
1818

1919
/* copy&pasted from .../src/backend/utils/adt/datetime.c
20-
* andchangesd struct pg_tm to struct tm
20+
* andchanged struct pg_tm to struct tm
2121
*/
2222
staticvoid
2323
AdjustFractSeconds(doublefrac,struct/* pg_ */tm*tm,fsec_t*fsec,intscale)
@@ -35,7 +35,7 @@ AdjustFractSeconds(double frac, struct /* pg_ */ tm *tm, fsec_t *fsec, int scale
3535

3636

3737
/* copy&pasted from .../src/backend/utils/adt/datetime.c
38-
* andchangesd struct pg_tm to struct tm
38+
* andchanged struct pg_tm to struct tm
3939
*/
4040
staticvoid
4141
AdjustFractDays(doublefrac,struct/* pg_ */tm*tm,fsec_t*fsec,intscale)
@@ -88,7 +88,7 @@ ISO8601IntegerWidth(const char *fieldstart)
8888

8989

9090
/* copy&pasted from .../src/backend/utils/adt/datetime.c
91-
* andchangesd struct pg_tm to struct tm
91+
* andchanged struct pg_tm to struct tm
9292
*/
9393
staticinlinevoid
9494
ClearPgTm(struct/* pg_ */tm*tm,fsec_t*fsec)
@@ -104,7 +104,7 @@ ClearPgTm(struct /* pg_ */ tm *tm, fsec_t *fsec)
104104

105105
/* copy&pasted from .../src/backend/utils/adt/datetime.c
106106
*
107-
* *changesd struct pg_tm to struct tm
107+
* *changed struct pg_tm to struct tm
108108
*
109109
* * Made the function static
110110
*/
@@ -311,7 +311,7 @@ DecodeISO8601Interval(char *str,
311311
/* copy&pasted from .../src/backend/utils/adt/datetime.c
312312
* with 3 exceptions
313313
*
314-
**changesd struct pg_tm to struct tm
314+
**changed struct pg_tm to struct tm
315315
*
316316
** ECPG code called this without a 'range' parameter
317317
* removed 'int range' from the argument list and

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp