diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-05-20 16:18:11 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-05-20 16:56:22 +0300 |
commit | 4fc72cc7bb9d2105261b8ee45558af50d788cd19 (patch) | |
tree | 57f1b8dda880693ac01ead8945ad18734e24677f /src/backend/utils/adt | |
parent | f6a54fefc299b933052885bb0532c476d382cc71 (diff) | |
download | postgresql-4fc72cc7bb9d2105261b8ee45558af50d788cd19.tar.gz postgresql-4fc72cc7bb9d2105261b8ee45558af50d788cd19.zip |
Collection of typo fixes.
Use "a" and "an" correctly, mostly in comments. Two error messages were
also fixed (they were just elogs, so no translation work required). Two
function comments in pg_proc.h were also fixed. Etsuro Fujita reported one
of these, but I found a lot more with grep.
Also fix a few other typos spotted while grepping for the a/an typos.
For example, "consists out of ..." -> "consists of ...". Plus a "though"/
"through" mixup reported by Euler Taveira.
Many of these typos were in old code, which would be nice to backpatch to
make future backpatching easier. But much of the code was new, and I didn't
feel like crafting separate patches for each branch. So no backpatching.
Diffstat (limited to 'src/backend/utils/adt')
-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 |
8 files changed, 14 insertions, 14 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 |