diff options
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/adt/array_selfuncs.c | 4 | ||||
-rw-r--r-- | src/backend/utils/adt/array_typanalyze.c | 2 | ||||
-rw-r--r-- | src/backend/utils/adt/cash.c | 2 | ||||
-rw-r--r-- | src/backend/utils/adt/rangetypes_selfuncs.c | 4 | ||||
-rw-r--r-- | src/backend/utils/adt/regproc.c | 2 | ||||
-rw-r--r-- | src/backend/utils/adt/timestamp.c | 6 | ||||
-rw-r--r-- | src/backend/utils/adt/tsvector_op.c | 4 | ||||
-rw-r--r-- | src/backend/utils/adt/varlena.c | 4 | ||||
-rw-r--r-- | src/backend/utils/cache/catcache.c | 2 | ||||
-rw-r--r-- | src/backend/utils/misc/sampling.c | 2 |
10 files changed, 16 insertions, 16 deletions
diff --git a/src/backend/utils/adt/array_selfuncs.c b/src/backend/utils/adt/array_selfuncs.c index 6cd28c8c532..9d023c2621a 100644 --- a/src/backend/utils/adt/array_selfuncs.c +++ b/src/backend/utils/adt/array_selfuncs.c @@ -300,7 +300,7 @@ arraycontsel(PG_FUNCTION_ARGS) /* * OK, there's a Var and a Const we're dealing with here. We need the - * Const to be a array with same element type as column, else we can't do + * Const to be an array with same element type as column, else we can't do * anything useful. (Such cases will likely fail at runtime, but here * we'd rather just return a default estimate.) */ @@ -358,7 +358,7 @@ calc_arraycontsel(VariableStatData *vardata, Datum constval, cmpfunc = &typentry->cmp_proc_finfo; /* - * The caller made sure the const is a array with same element type, so + * The caller made sure the const is an array with same element type, so * get it now */ array = DatumGetArrayTypeP(constval); diff --git a/src/backend/utils/adt/array_typanalyze.c b/src/backend/utils/adt/array_typanalyze.c index 742f94d92aa..ffe8035eb4d 100644 --- a/src/backend/utils/adt/array_typanalyze.c +++ b/src/backend/utils/adt/array_typanalyze.c @@ -157,7 +157,7 @@ array_typanalyze(PG_FUNCTION_ARGS) } /* - * compute_array_stats() -- compute statistics for a array column + * compute_array_stats() -- compute statistics for an array column * * This function computes statistics useful for determining selectivity of * the array operators <@, &&, and @>. It is invoked by ANALYZE via the diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c index 6aba20de851..b336185df7e 100644 --- a/src/backend/utils/adt/cash.c +++ b/src/backend/utils/adt/cash.c @@ -893,7 +893,7 @@ cashsmaller(PG_FUNCTION_ARGS) } /* cash_words() - * This converts a int4 as well but to a representation using words + * This converts an int4 as well but to a representation using words * Obviously way North American centric - sorry */ Datum diff --git a/src/backend/utils/adt/rangetypes_selfuncs.c b/src/backend/utils/adt/rangetypes_selfuncs.c index a130b483f3c..7cc5e484366 100644 --- a/src/backend/utils/adt/rangetypes_selfuncs.c +++ b/src/backend/utils/adt/rangetypes_selfuncs.c @@ -596,8 +596,8 @@ calc_hist_selectivity_scalar(TypeCacheEntry *typcache, RangeBound *constbound, * range bounds in array are greater or equal(greater) than given range bound, * return -1. When "equal" flag is set conditions in brackets are used. * - * This function is used in scalar operators selectivity estimation. Another - * goal of this function is to found an histogram bin where to stop + * This function is used in scalar operator selectivity estimation. Another + * goal of this function is to find a histogram bin where to stop * interpolation of portion of bounds which are less or equal to given bound. */ static int diff --git a/src/backend/utils/adt/regproc.c b/src/backend/utils/adt/regproc.c index 7e5598d53cc..f27131edd16 100644 --- a/src/backend/utils/adt/regproc.c +++ b/src/backend/utils/adt/regproc.c @@ -440,7 +440,7 @@ format_procedure_internal(Oid procedure_oid, bool force_qualify) } /* - * Output a objname/objargs representation for the procedure with the + * Output an objname/objargs representation for the procedure with the * given OID. If it doesn't exist, an error is thrown. * * This can be used to feed get_object_address. diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c index 86a014a2bbc..dae929a24c8 100644 --- a/src/backend/utils/adt/timestamp.c +++ b/src/backend/utils/adt/timestamp.c @@ -1963,7 +1963,7 @@ tm2timestamp(struct pg_tm * tm, fsec_t fsec, int *tzp, Timestamp *result) /* interval2tm() - * Convert a interval data type to a tm structure. + * Convert an interval data type to a tm structure. */ int interval2tm(Interval span, struct pg_tm * tm, fsec_t *fsec) @@ -2907,7 +2907,7 @@ interval_justify_days(PG_FUNCTION_ARGS) } /* timestamp_pl_interval() - * Add a interval to a timestamp data type. + * Add an interval to a timestamp data type. * Note that interval has provisions for qualitative year/month and day * units, so try to do the right thing with them. * To add a month, increment the month, and use the same day of month. @@ -3007,7 +3007,7 @@ timestamp_mi_interval(PG_FUNCTION_ARGS) /* timestamptz_pl_interval() - * Add a interval to a timestamp with time zone data type. + * Add an interval to a timestamp with time zone data type. * Note that interval has provisions for qualitative year/month * units, so try to do the right thing with them. * To add a month, increment the month, and use the same day of month. diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c index 266a728ef6a..eb15937b355 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -38,8 +38,8 @@ typedef struct typedef struct StatEntry { - uint32 ndoc; /* zero indicates that we already was here - * while walking throug the tree */ + uint32 ndoc; /* zero indicates that we were already here + * while walking through the tree */ uint32 nentry; struct StatEntry *left; struct StatEntry *right; diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index 18cbdd0e769..5fd2bef617f 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -4126,7 +4126,7 @@ array_to_text_internal(FunctionCallInfo fcinfo, ArrayType *v, #define HEXBASE 16 /* - * Convert a int32 to a string containing a base 16 (hex) representation of + * Convert an int32 to a string containing a base 16 (hex) representation of * the number. */ Datum @@ -4150,7 +4150,7 @@ to_hex32(PG_FUNCTION_ARGS) } /* - * Convert a int64 to a string containing a base 16 (hex) representation of + * Convert an int64 to a string containing a base 16 (hex) representation of * the number. */ Datum diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c index 5bb03dd0b1e..577c0590729 100644 --- a/src/backend/utils/cache/catcache.c +++ b/src/backend/utils/cache/catcache.c @@ -1123,7 +1123,7 @@ SearchCatCache(CatCache *cache, SysScanDesc scandesc; HeapTuple ntp; - /* Make sure we're in a xact, even if this ends up being a cache hit */ + /* Make sure we're in an xact, even if this ends up being a cache hit */ Assert(IsTransactionState()); /* diff --git a/src/backend/utils/misc/sampling.c b/src/backend/utils/misc/sampling.c index c9479ec175e..69479a5fc8c 100644 --- a/src/backend/utils/misc/sampling.c +++ b/src/backend/utils/misc/sampling.c @@ -78,7 +78,7 @@ BlockSampler_Next(BlockSampler bs) * Knuth says to skip the current block with probability 1 - k/K. * If we are to skip, we should advance t (hence decrease K), and * repeat the same probabilistic test for the next block. The naive - * implementation thus requires an sampler_random_fract() call for each + * implementation thus requires a sampler_random_fract() call for each * block number. But we can reduce this to one sampler_random_fract() * call per selected block, by noting that each time the while-test * succeeds, we can reinterpret V as a uniform random number in the range |