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

Commit2d8a1e2

Browse files
committed
Various minor corrections of and improvements to comments.
Aleksander Alekseev
1 parentaa698d7 commit2d8a1e2

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

‎contrib/pg_trgm/trgm_gin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ gin_trgm_consistent(PG_FUNCTION_ARGS)
210210
* And again, c (ntrue) is a lower bound of len2, but c <= len1
211211
* just by definition and, consequently, upper bound of
212212
* similarity is just c / len1.
213-
* So,independly on DIVUNION the upper bound formula is the same.
213+
* So,independently on DIVUNION the upper bound formula is the same.
214214
*/
215215
res= (nkeys==0) ? false :
216216
(((((float4)ntrue) / ((float4)nkeys))) >=nlimit);
@@ -330,7 +330,7 @@ gin_trgm_triconsistent(PG_FUNCTION_ARGS)
330330
else
331331
{
332332
/*
333-
* As trigramsMatchGraph implements amontonic boolean function,
333+
* As trigramsMatchGraph implements amonotonic boolean function,
334334
* promoting all GIN_MAYBE keys to GIN_TRUE will give a
335335
* conservative result.
336336
*/

‎contrib/pg_trgm/trgm_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ calc_word_similarity(char *str1, int slen1, char *str2, int slen2,
628628

629629

630630
/*
631-
* Extract the next non-wildcard part of a search string,ie, a word bounded
631+
* Extract the next non-wildcard part of a search string,i.e. a word bounded
632632
* by '_' or '%' meta-characters, non-word characters or string end.
633633
*
634634
* str: source string, of length lenstr bytes (need not be null-terminated)

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ timestamp_recv(PG_FUNCTION_ARGS)
258258
errmsg("timestamp cannot be NaN")));
259259
#endif
260260

261-
/*rangecheck: see if timestamp_out would like it */
261+
/*range check: see if timestamp_out would like it */
262262
if (TIMESTAMP_NOT_FINITE(timestamp))
263263
/* ok */ ;
264264
elseif (timestamp2tm(timestamp,NULL,tm,&fsec,NULL,NULL)!=0||
@@ -792,7 +792,7 @@ timestamptz_recv(PG_FUNCTION_ARGS)
792792
timestamp= (TimestampTz)pq_getmsgfloat8(buf);
793793
#endif
794794

795-
/*rangecheck: see if timestamptz_out would like it */
795+
/*range check: see if timestamptz_out would like it */
796796
if (TIMESTAMP_NOT_FINITE(timestamp))
797797
/* ok */ ;
798798
elseif (timestamp2tm(timestamp,&tz,tm,&fsec,NULL,NULL)!=0||
@@ -1435,7 +1435,7 @@ AdjustIntervalForTypmod(Interval *interval, int32 typmod)
14351435
else
14361436
elog(ERROR,"unrecognized interval typmod: %d",typmod);
14371437

1438-
/* Need to adjustsubsecond precision? */
1438+
/* Need to adjustsub-second precision? */
14391439
if (precision!=INTERVAL_FULL_PRECISION)
14401440
{
14411441
if (precision<0||precision>MAX_INTERVAL_PRECISION)
@@ -1635,7 +1635,7 @@ IntegerTimestampToTimestampTz(int64 timestamp)
16351635
* Both inputs must be ordinary finite timestamps (in current usage,
16361636
* they'll be results from GetCurrentTimestamp()).
16371637
*
1638-
* We expect start_time <= stop_time. If not, we returnzeroes; for current
1638+
* We expect start_time <= stop_time. If not, we returnzeros; for current
16391639
* callers there is no need to be tense about which way division rounds on
16401640
* negative inputs.
16411641
*/
@@ -2276,7 +2276,7 @@ timestamp_hash(PG_FUNCTION_ARGS)
22762276

22772277

22782278
/*
2279-
*Crosstype comparison functions for timestamp vs timestamptz
2279+
*Cross-type comparison functions for timestamp vs timestamptz
22802280
*/
22812281

22822282
Datum
@@ -2678,7 +2678,7 @@ overlaps_timestamp(PG_FUNCTION_ARGS)
26782678
{
26792679
/*
26802680
* For ts1 = ts2 the spec says te1 <> te2 OR te1 = te2, which is a
2681-
* rather silly way of saying "true if both arenonnull, else null".
2681+
* rather silly way of saying "true if both arenon-null, else null".
26822682
*/
26832683
if (te1IsNull||te2IsNull)
26842684
PG_RETURN_NULL();
@@ -2996,7 +2996,7 @@ timestamp_pl_interval(PG_FUNCTION_ARGS)
29962996
(errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
29972997
errmsg("timestamp out of range")));
29982998

2999-
/* Add days by converting to and fromjulian */
2999+
/* Add days by converting to and fromJulian */
30003000
julian=date2j(tm->tm_year,tm->tm_mon,tm->tm_mday)+span->day;
30013001
j2date(julian,&tm->tm_year,&tm->tm_mon,&tm->tm_mday);
30023002

@@ -3104,7 +3104,7 @@ timestamptz_pl_interval(PG_FUNCTION_ARGS)
31043104
(errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
31053105
errmsg("timestamp out of range")));
31063106

3107-
/* Add days by converting to and fromjulian */
3107+
/* Add days by converting to and fromJulian */
31083108
julian=date2j(tm->tm_year,tm->tm_mon,tm->tm_mday)+span->day;
31093109
j2date(julian,&tm->tm_year,&tm->tm_mon,&tm->tm_mday);
31103110

@@ -3309,7 +3309,7 @@ interval_mul(PG_FUNCTION_ARGS)
33093309
/*
33103310
* The above correctly handles the whole-number part of the month and day
33113311
* products, but we have to do something with any fractional part
3312-
* resulting when the factor isnonintegral. We cascade the fractions
3312+
* resulting when the factor isnon-integral. We cascade the fractions
33133313
* down to lower units using the conversion factors DAYS_PER_MONTH and
33143314
* SECS_PER_DAY. Note we do NOT cascade up, since we are not forced to do
33153315
* so by the representation. The user can choose to cascade up later,
@@ -3319,7 +3319,7 @@ interval_mul(PG_FUNCTION_ARGS)
33193319
/*
33203320
* Fractional months full days into days.
33213321
*
3322-
* Floating point calculation are inherentlyinprecise, so these
3322+
* Floating point calculation are inherentlyimprecise, so these
33233323
* calculations are crafted to produce the most reliable result possible.
33243324
* TSROUND() is needed to more accurately produce whole numbers where
33253325
* appropriate.

‎src/backend/utils/misc/guc.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ static struct config_bool ConfigureNamesBool[] =
16341634

16351635
{
16361636
{"syslog_sequence_numbers",PGC_SIGHUP,LOGGING_WHERE,
1637-
gettext_noop("Add sequence number to syslogmessags to avoid duplicate suppression."),
1637+
gettext_noop("Add sequence number to syslogmessages to avoid duplicate suppression."),
16381638
NULL
16391639
},
16401640
&syslog_sequence_numbers,
@@ -2681,7 +2681,7 @@ static struct config_int ConfigureNamesInt[] =
26812681

26822682
{
26832683
{"ssl_renegotiation_limit",PGC_USERSET,CONN_AUTH_SECURITY,
2684-
gettext_noop("SSLregenotiation is no longer supported; this can only be 0."),
2684+
gettext_noop("SSLrenegotiation is no longer supported; this can only be 0."),
26852685
NULL,
26862686
GUC_NO_SHOW_ALL |GUC_NOT_IN_SAMPLE |GUC_DISALLOW_IN_FILE,
26872687
},
@@ -4059,7 +4059,7 @@ get_guc_variables(void)
40594059

40604060
/*
40614061
* Build the sorted array. This is split out so that it could be
4062-
* re-executed after startup (eg, we could allow loadable modules to
4062+
* re-executed after startup (e.g., we could allow loadable modules to
40634063
* add vars, and then we'd need to re-sort).
40644064
*/
40654065
void
@@ -5904,7 +5904,7 @@ set_config_option(const char *name, const char *value,
59045904
* don't re-read the config file during backend start.
59055905
*
59065906
* In EXEC_BACKEND builds, this works differently: we load all
5907-
*nondefault settings from the CONFIG_EXEC_PARAMS file during
5907+
*non-default settings from the CONFIG_EXEC_PARAMS file during
59085908
* backend start. In that case we must accept PGC_SIGHUP
59095909
* settings, so as to have the same value as if we'd forked
59105910
* from the postmaster. This can also happen when using
@@ -6663,7 +6663,7 @@ GetConfigOptionResetString(const char *name)
66636663
* We need to be told the name of the variable the args are for, because
66646664
* the flattening rules vary (ugh).
66656665
*
6666-
* The result is NULL if args is NIL (ie, SET ... TO DEFAULT), otherwise
6666+
* The result is NULL if args is NIL (i.e., SET ... TO DEFAULT), otherwise
66676667
* a palloc'd string.
66686668
*/
66696669
staticchar*
@@ -7994,7 +7994,7 @@ GetConfigOptionByNum(int varnum, const char **values, bool *noshow)
79947994
/* source */
79957995
values[8]=GucSource_Names[conf->source];
79967996

7997-
/* now get the typespecifc attributes */
7997+
/* now get the typespecific attributes */
79987998
switch (conf->vartype)
79997999
{
80008000
casePGC_BOOL:
@@ -9531,7 +9531,7 @@ validate_option_array_item(const char *name, const char *value,
95319531
* There are three cases to consider:
95329532
*
95339533
* name is a known GUC variable. Check the value normally, check
9534-
* permissions normally (ie, allow if variable is USERSET, or if it's
9534+
* permissions normally (i.e., allow if variable is USERSET, or if it's
95359535
* SUSET and user is superuser).
95369536
*
95379537
* name is not known, but exists or can be created as a placeholder (i.e.,

‎src/backend/utils/sort/tuplesort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2742,7 +2742,7 @@ batchmemtuples(Tuplesortstate *state)
27422742
/*
27432743
* Refund STANDARDCHUNKHEADERSIZE per tuple.
27442744
*
2745-
* This sometimes fails to make memory useprefectly balanced, but it
2745+
* This sometimes fails to make memory useperfectly balanced, but it
27462746
* should never make the situation worse. Note that Assert-enabled builds
27472747
* get a larger refund, due to a varying STANDARDCHUNKHEADERSIZE.
27482748
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp