mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Fix a boatload of typos in C comments.
Justin Pryzby Discussion: https://postgr.es/m/20180331105640.GK28454@telsasoft.com
This commit is contained in:
@@ -239,7 +239,7 @@ typedef HashScanOpaqueData *HashScanOpaque;
|
||||
#define HASH_SPLITPOINT_PHASE_MASK (HASH_SPLITPOINT_PHASES_PER_GRP - 1)
|
||||
#define HASH_SPLITPOINT_GROUPS_WITH_ONE_PHASE 10
|
||||
|
||||
/* defines max number of splitpoit phases a hash index can have */
|
||||
/* defines max number of splitpoint phases a hash index can have */
|
||||
#define HASH_MAX_SPLITPOINT_GROUP 32
|
||||
#define HASH_MAX_SPLITPOINTS \
|
||||
(((HASH_MAX_SPLITPOINT_GROUP - HASH_SPLITPOINT_GROUPS_WITH_ONE_PHASE) * \
|
||||
|
||||
@@ -190,7 +190,7 @@ typedef struct ParallelHashJoinBatch
|
||||
|
||||
/*
|
||||
* Each backend requires a small amount of per-batch state to interact with
|
||||
* each ParalellHashJoinBatch.
|
||||
* each ParallelHashJoinBatch.
|
||||
*/
|
||||
typedef struct ParallelHashJoinBatchAccessor
|
||||
{
|
||||
@@ -201,7 +201,7 @@ typedef struct ParallelHashJoinBatchAccessor
|
||||
size_t ntuples; /* number of tuples */
|
||||
size_t size; /* size of partition in memory */
|
||||
size_t estimated_size; /* size of partition on disk */
|
||||
size_t old_ntuples; /* how many tuples before repartioning? */
|
||||
size_t old_ntuples; /* how many tuples before repartitioning? */
|
||||
bool at_least_one_chunk; /* has this backend allocated a chunk? */
|
||||
|
||||
bool done; /* flag to remember that a batch is done */
|
||||
|
||||
@@ -104,7 +104,7 @@ typedef struct AggStatePerTransData
|
||||
/*
|
||||
* Comparators for input columns --- only set/used when aggregate has
|
||||
* DISTINCT flag. equalfnOne version is used for single-column
|
||||
* commparisons, equalfnMulti for the case of multiple columns.
|
||||
* comparisons, equalfnMulti for the case of multiple columns.
|
||||
*/
|
||||
FmgrInfo equalfnOne;
|
||||
ExprState *equalfnMulti;
|
||||
|
||||
@@ -47,7 +47,7 @@ struct TableFuncScanState;
|
||||
*
|
||||
* DestroyBuilder shall release all resources associated with a table builder
|
||||
* context. It may be called either because all rows have been consumed, or
|
||||
* because an error ocurred while processing the table expression.
|
||||
* because an error occurred while processing the table expression.
|
||||
*/
|
||||
typedef struct TableFuncRoutine
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "utils/resowner.h"
|
||||
|
||||
|
||||
/* Flags deterimining what kind of JIT operations to perform */
|
||||
/* Flags determining what kind of JIT operations to perform */
|
||||
#define PGJIT_NONE 0
|
||||
#define PGJIT_PERFORM 1 << 0
|
||||
#define PGJIT_OPT3 1 << 1
|
||||
|
||||
@@ -107,7 +107,7 @@ extern void llvm_inline(LLVMModuleRef mod);
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* Code ceneration functions.
|
||||
* Code generation functions.
|
||||
****************************************************************************
|
||||
*/
|
||||
extern bool llvm_compile_expr(struct ExprState *state);
|
||||
|
||||
@@ -42,7 +42,7 @@ typedef dshash_hash (*dshash_hash_function) (const void *v, size_t size,
|
||||
* Compare and hash functions must be supplied even when attaching, because we
|
||||
* can't safely share function pointers between backends in general. Either
|
||||
* the arg variants or the non-arg variants should be supplied; the other
|
||||
* function pointers should be NULL. If the arg varants are supplied then the
|
||||
* function pointers should be NULL. If the arg variants are supplied then the
|
||||
* user data pointer supplied to the create and attach functions will be
|
||||
* passed to the hash and compare functions.
|
||||
*/
|
||||
|
||||
@@ -410,7 +410,7 @@ extern const pg_wchar_tbl pg_wchar_table[];
|
||||
* points to a lookup table for the second byte. And so on.
|
||||
*
|
||||
* Physically, all the trees are stored in one big array, in 'chars16' or
|
||||
* 'chars32', depending on the maximum value that needs to be reprented. For
|
||||
* 'chars32', depending on the maximum value that needs to be represented. For
|
||||
* each level in each tree, we also store lower and upper bound of allowed
|
||||
* values - values outside those bounds are considered invalid, and are left
|
||||
* out of the tables.
|
||||
|
||||
@@ -1444,7 +1444,7 @@ typedef JoinPath NestPath;
|
||||
* that the executor need find only one match per outer tuple, and that the
|
||||
* mergeclauses are sufficient to identify a match. In such cases the
|
||||
* executor can immediately advance the outer relation after processing a
|
||||
* match, and therefoere it need never back up the inner relation.
|
||||
* match, and therefore it need never back up the inner relation.
|
||||
*
|
||||
* materialize_inner is true if a Material node should be placed atop the
|
||||
* inner input. This may appear with or without an inner Sort step.
|
||||
|
||||
@@ -347,7 +347,7 @@ extern int isinf(double x);
|
||||
/*
|
||||
* Glibc doesn't use the builtin for clang due to a *gcc* bug in a version
|
||||
* newer than the gcc compatibility clang claims to have. This would cause a
|
||||
* *lot* of superflous function calls, therefore revert when using clang.
|
||||
* *lot* of superfluous function calls, therefore revert when using clang.
|
||||
*/
|
||||
#ifdef __clang__
|
||||
/* needs to be separate to not confuse other compilers */
|
||||
|
||||
Reference in New Issue
Block a user