diff options
author | Magnus Hagander <magnus@hagander.net> | 2018-11-02 13:56:16 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2018-11-02 13:56:52 +0100 |
commit | fbec7459aa39da864ad1d578f044a21c3b3b057c (patch) | |
tree | 79d55688053fef8d9d63099f06f8eca154b5142e /src/backend | |
parent | 8610c973ddf1cbf0befc1369d2cf0d56c0efcd0a (diff) | |
download | postgresql-fbec7459aa39da864ad1d578f044a21c3b3b057c.tar.gz postgresql-fbec7459aa39da864ad1d578f044a21c3b3b057c.zip |
Fix spelling errors and typos in comments
Author: Daniel Gustafsson <daniel@yesql.se>
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/access/nbtree/nbtsearch.c | 2 | ||||
-rw-r--r-- | src/backend/access/transam/xact.c | 2 | ||||
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 | ||||
-rw-r--r-- | src/backend/executor/execExprInterp.c | 2 | ||||
-rw-r--r-- | src/backend/executor/execPartition.c | 2 | ||||
-rw-r--r-- | src/backend/jit/llvm/llvmjit.c | 4 | ||||
-rw-r--r-- | src/backend/optimizer/plan/createplan.c | 2 | ||||
-rw-r--r-- | src/backend/port/tas/sunstudio_sparc.s | 2 | ||||
-rw-r--r-- | src/backend/storage/ipc/dsm.c | 4 | ||||
-rw-r--r-- | src/backend/storage/ipc/latch.c | 2 | ||||
-rw-r--r-- | src/backend/utils/adt/formatting.c | 2 | ||||
-rw-r--r-- | src/backend/utils/adt/jsonb_util.c | 2 | ||||
-rw-r--r-- | src/backend/utils/adt/jsonfuncs.c | 2 | ||||
-rw-r--r-- | src/backend/utils/cache/attoptcache.c | 2 | ||||
-rw-r--r-- | src/backend/utils/cache/relfilenodemap.c | 2 | ||||
-rw-r--r-- | src/backend/utils/cache/typcache.c | 2 |
16 files changed, 18 insertions, 18 deletions
diff --git a/src/backend/access/nbtree/nbtsearch.c b/src/backend/access/nbtree/nbtsearch.c index 8b2772c1546..16223d01ec4 100644 --- a/src/backend/access/nbtree/nbtsearch.c +++ b/src/backend/access/nbtree/nbtsearch.c @@ -184,7 +184,7 @@ _bt_search(Relation rel, int keysz, ScanKey scankey, bool nextkey, /* * If we're asked to lock leaf in write mode, but didn't manage to, then - * relock. That may happend when root page appears to be leaf. + * relock. That may happen when the root page appears to be leaf. */ if (access == BT_WRITE && page_access == BT_READ) { diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 8c1621d949c..a979d7e07b9 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -487,7 +487,7 @@ AssignTransactionId(TransactionState s) /* * Ensure parent(s) have XIDs, so that a child always has an XID later - * than its parent. Musn't recurse here, or we might get a stack overflow + * than its parent. Mustn't recurse here, or we might get a stack overflow * if we're at the bottom of a huge stack of subtransactions none of which * have XIDs yet. */ diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index ba76c3f9b90..a3de886c47b 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -834,7 +834,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId, if (OidIsValid(defaultPartOid)) defaultRel = heap_open(defaultPartOid, AccessExclusiveLock); - /* Tranform the bound values */ + /* Transform the bound values */ pstate = make_parsestate(NULL); pstate->p_sourcetext = queryString; diff --git a/src/backend/executor/execExprInterp.c b/src/backend/executor/execExprInterp.c index 1b0946b02f2..c08df6f162d 100644 --- a/src/backend/executor/execExprInterp.c +++ b/src/backend/executor/execExprInterp.c @@ -1622,7 +1622,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull) /* * Evaluate aggregate transition / combine function that has a - * by-value transition type. That's a seperate case from the + * by-value transition type. That's a separate case from the * by-reference implementation because it's a bit simpler. */ EEO_CASE(EEOP_AGG_PLAIN_TRANS_BYVAL) diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index 0bcb2377c34..1e72e9fb3f5 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -852,7 +852,7 @@ ExecCleanupTupleRouting(ModifyTableState *mtstate, { ResultRelInfo *resultRelInfo = proute->partitions[i]; - /* skip further processsing for uninitialized partitions */ + /* skip further processing for uninitialized partitions */ if (resultRelInfo == NULL) continue; diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index 7510698f863..a543dd37110 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -438,7 +438,7 @@ llvm_optimize_module(LLVMJitContext *context, LLVMModuleRef module) if (context->base.flags & PGJIT_OPT3) { - /* TODO: Unscientifically determined threshhold */ + /* TODO: Unscientifically determined threshold */ LLVMPassManagerBuilderUseInlinerWithThreshold(llvm_pmb, 512); } else @@ -853,7 +853,7 @@ llvm_split_symbol_name(const char *name, char **modname, char **funcname) { /* * Symbol names cannot contain a ., therefore we can split based on - * first and last occurance of one. + * first and last occurrence of one. */ *funcname = rindex(name, '.'); (*funcname)++; /* jump over . */ diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c index ae46b0140e5..da7a92081af 100644 --- a/src/backend/optimizer/plan/createplan.c +++ b/src/backend/optimizer/plan/createplan.c @@ -65,7 +65,7 @@ * and Group, which need these values to be available in their inputs. * * CP_IGNORE_TLIST specifies that the caller plans to replace the targetlist, - * and therefore it doens't matter a bit what target list gets generated. + * and therefore it doesn't matter a bit what target list gets generated. */ #define CP_EXACT_TLIST 0x0001 /* Plan must return specified tlist */ #define CP_SMALL_TLIST 0x0002 /* Prefer narrower tlists */ diff --git a/src/backend/port/tas/sunstudio_sparc.s b/src/backend/port/tas/sunstudio_sparc.s index b041a296ca0..0db590ee462 100644 --- a/src/backend/port/tas/sunstudio_sparc.s +++ b/src/backend/port/tas/sunstudio_sparc.s @@ -26,7 +26,7 @@ pg_atomic_cas: ! "cas" only works on sparcv9 and sparcv8plus chips, and - ! requies a compiler targeting these CPUs. It will fail + ! requires a compiler targeting these CPUs. It will fail ! on a compiler targeting sparcv8, and of course will not ! be understood by a sparcv8 CPU. gcc continues to use ! "ldstub" because it targets sparcv7. diff --git a/src/backend/storage/ipc/dsm.c b/src/backend/storage/ipc/dsm.c index 9629f22f7af..d4bd6ef4490 100644 --- a/src/backend/storage/ipc/dsm.c +++ b/src/backend/storage/ipc/dsm.c @@ -429,7 +429,7 @@ dsm_set_control_handle(dsm_handle h) * If there is a non-NULL CurrentResourceOwner, the new segment is associated * with it and must be detached before the resource owner releases, or a * warning will be logged. If CurrentResourceOwner is NULL, the segment - * remains attached until explicitely detached or the session ends. + * remains attached until explicitly detached or the session ends. * Creating with a NULL CurrentResourceOwner is equivalent to creating * with a non-NULL CurrentResourceOwner and then calling dsm_pin_mapping. */ @@ -527,7 +527,7 @@ dsm_create(Size size, int flags) * If there is a non-NULL CurrentResourceOwner, the attached segment is * associated with it and must be detached before the resource owner releases, * or a warning will be logged. Otherwise the segment remains attached until - * explicitely detached or the session ends. See the note atop dsm_create(). + * explicitly detached or the session ends. See the note atop dsm_create(). */ dsm_segment * dsm_attach(dsm_handle h) diff --git a/src/backend/storage/ipc/latch.c b/src/backend/storage/ipc/latch.c index f6dda9cc9ac..c129446f9c9 100644 --- a/src/backend/storage/ipc/latch.c +++ b/src/backend/storage/ipc/latch.c @@ -1030,7 +1030,7 @@ WaitEventSetWait(WaitEventSet *set, long timeout, /* * Wait using linux's epoll_wait(2). * - * This is the preferrable wait method, as several readiness notifications are + * This is the preferable wait method, as several readiness notifications are * delivered, without having to iterate through all of set->events. The return * epoll_event struct contain a pointer to our events, making association * easy. diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 4118b78ae41..2923afe7b62 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -3706,7 +3706,7 @@ to_timestamp(PG_FUNCTION_ARGS) /* ---------- * TO_DATE - * Make Date from date_str which is formated at argument 'fmt' + * Make Date from date_str which is formatted at argument 'fmt' * ---------- */ Datum diff --git a/src/backend/utils/adt/jsonb_util.c b/src/backend/utils/adt/jsonb_util.c index 3be900f8ee0..713631b04f0 100644 --- a/src/backend/utils/adt/jsonb_util.c +++ b/src/backend/utils/adt/jsonb_util.c @@ -1363,7 +1363,7 @@ compareJsonbScalarValue(JsonbValue *aScalar, JsonbValue *bScalar) /* - * Functions for manipulating the resizeable buffer used by convertJsonb and + * Functions for manipulating the resizable buffer used by convertJsonb and * its subroutines. */ diff --git a/src/backend/utils/adt/jsonfuncs.c b/src/backend/utils/adt/jsonfuncs.c index 06f8d281685..0d3e1121cd0 100644 --- a/src/backend/utils/adt/jsonfuncs.c +++ b/src/backend/utils/adt/jsonfuncs.c @@ -5040,7 +5040,7 @@ iterate_jsonb_values(Jsonb *jb, uint32 flags, void *state, /* * Just recursively iterating over jsonb and call callback on all - * correspoding elements + * corresponding elements */ while ((type = JsonbIteratorNext(&it, &v, false)) != WJB_DONE) { diff --git a/src/backend/utils/cache/attoptcache.c b/src/backend/utils/cache/attoptcache.c index 92468472a40..f5c02affcd4 100644 --- a/src/backend/utils/cache/attoptcache.c +++ b/src/backend/utils/cache/attoptcache.c @@ -24,7 +24,7 @@ #include "utils/syscache.h" -/* Hash table for informations about each attribute's options */ +/* Hash table for information about each attribute's options */ static HTAB *AttoptCacheHash = NULL; /* attrelid and attnum form the lookup key, and must appear first */ diff --git a/src/backend/utils/cache/relfilenodemap.c b/src/backend/utils/cache/relfilenodemap.c index 6f6bba79c34..34679725b3d 100644 --- a/src/backend/utils/cache/relfilenodemap.c +++ b/src/backend/utils/cache/relfilenodemap.c @@ -29,7 +29,7 @@ #include "utils/relfilenodemap.h" #include "utils/relmapper.h" -/* Hash table for informations about each relfilenode <-> oid pair */ +/* Hash table for information about each relfilenode <-> oid pair */ static HTAB *RelfilenodeMapHash = NULL; /* built first time through in InitializeRelfilenodeMap */ diff --git a/src/backend/utils/cache/typcache.c b/src/backend/utils/cache/typcache.c index e38fd16eb09..663d4ed8bbd 100644 --- a/src/backend/utils/cache/typcache.c +++ b/src/backend/utils/cache/typcache.c @@ -1869,7 +1869,7 @@ assign_record_type_identifier(Oid type_id, int32 typmod) } /* - * Return the amout of shmem required to hold a SharedRecordTypmodRegistry. + * Return the amount of shmem required to hold a SharedRecordTypmodRegistry. * This exists only to avoid exposing private innards of * SharedRecordTypmodRegistry in a header. */ |