diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-06-17 16:13:16 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-06-17 16:13:16 +0900 |
commit | 3412030205211079f9b0510e2244083e4ee7b15a (patch) | |
tree | 89b607651122d058e79704cd15764db20b8a3025 /src/include | |
parent | 9d20b0ec8f2af43041b1a65e5fcd91acc47e9ace (diff) | |
download | postgresql-3412030205211079f9b0510e2244083e4ee7b15a.tar.gz |
Fix more typos and inconsistencies in the tree
Author: Alexander Lakhin
Discussion: https://postgr.es/m/0a5419ea-1452-a4e6-72ff-545b1a5a8076@gmail.com
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/xlogdefs.h | 2 | ||||
-rw-r--r-- | src/include/catalog/partition.h | 2 | ||||
-rw-r--r-- | src/include/catalog/pg_foreign_data_wrapper.h | 4 | ||||
-rw-r--r-- | src/include/executor/tuptable.h | 6 | ||||
-rw-r--r-- | src/include/optimizer/placeholder.h | 2 | ||||
-rw-r--r-- | src/include/partitioning/partprune.h | 2 | ||||
-rw-r--r-- | src/include/port/pg_bitutils.h | 2 | ||||
-rw-r--r-- | src/include/utils/jsonapi.h | 2 | ||||
-rw-r--r-- | src/include/utils/sharedtuplestore.h | 2 |
9 files changed, 11 insertions, 13 deletions
diff --git a/src/include/access/xlogdefs.h b/src/include/access/xlogdefs.h index cadecab721..daded3dca0 100644 --- a/src/include/access/xlogdefs.h +++ b/src/include/access/xlogdefs.h @@ -22,7 +22,7 @@ typedef uint64 XLogRecPtr; /* * Zero is used indicate an invalid pointer. Bootstrap skips the first possible - * WAL segment, initializing the first WAL page at XLOG_SEG_SIZE, so no XLOG + * WAL segment, initializing the first WAL page at WAL segment size, so no XLOG * record can begin at zero. */ #define InvalidXLogRecPtr 0 diff --git a/src/include/catalog/partition.h b/src/include/catalog/partition.h index e234b3c0ef..5c3565ce36 100644 --- a/src/include/catalog/partition.h +++ b/src/include/catalog/partition.h @@ -30,6 +30,6 @@ extern bool has_partition_attrs(Relation rel, Bitmapset *attnums, extern Oid get_default_partition_oid(Oid parentId); extern void update_default_partition_oid(Oid parentId, Oid defaultPartId); -extern List *get_proposed_default_constraint(List *new_part_constaints); +extern List *get_proposed_default_constraint(List *new_part_constraints); #endif /* PARTITION_H */ diff --git a/src/include/catalog/pg_foreign_data_wrapper.h b/src/include/catalog/pg_foreign_data_wrapper.h index 9ee9afd97c..3f0cef33b4 100644 --- a/src/include/catalog/pg_foreign_data_wrapper.h +++ b/src/include/catalog/pg_foreign_data_wrapper.h @@ -41,8 +41,8 @@ CATALOG(pg_foreign_data_wrapper,2328,ForeignDataWrapperRelationId) } FormData_pg_foreign_data_wrapper; /* ---------------- - * Form_pg_fdw corresponds to a pointer to a tuple with - * the format of pg_fdw relation. + * Form_pg_foreign_data_wrapper corresponds to a pointer to a tuple with + * the format of pg_foreign_data_wrapper relation. * ---------------- */ typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper; diff --git a/src/include/executor/tuptable.h b/src/include/executor/tuptable.h index 0710a7dd38..203b1ab7dc 100644 --- a/src/include/executor/tuptable.h +++ b/src/include/executor/tuptable.h @@ -68,8 +68,8 @@ * A TupleTableSlot can also be "empty", indicated by flag TTS_FLAG_EMPTY set * in tts_flags, holding no valid data. This is the only valid state for a * freshly-created slot that has not yet had a tuple descriptor assigned to - * it. In this state, TTS_SHOULDFREE should not be set in tts_flag, tts_tuple - * must be NULL, tts_buffer InvalidBuffer, and tts_nvalid zero. + * it. In this state, TTS_SHOULDFREE should not be set in tts_flags, tts_tuple + * must be NULL and tts_nvalid zero. * * The tupleDescriptor is simply referenced, not copied, by the TupleTableSlot * code. The caller of ExecSetSlotDescriptor() is responsible for providing @@ -87,7 +87,7 @@ * the descriptor is provided), or when a descriptor is assigned to the slot; * they are of length equal to the descriptor's natts. * - * The TTS_FLAG_SLOW flag and tts_off are saved state for + * The TTS_FLAG_SLOW flag is saved state for * slot_deform_heap_tuple, and should not be touched by any other code. *---------- */ diff --git a/src/include/optimizer/placeholder.h b/src/include/optimizer/placeholder.h index be27751974..08f7187923 100644 --- a/src/include/optimizer/placeholder.h +++ b/src/include/optimizer/placeholder.h @@ -28,7 +28,5 @@ extern void fix_placeholder_input_needed_levels(PlannerInfo *root); extern void add_placeholders_to_base_rels(PlannerInfo *root); extern void add_placeholders_to_joinrel(PlannerInfo *root, RelOptInfo *joinrel, RelOptInfo *outer_rel, RelOptInfo *inner_rel); -extern void add_placeholders_to_child_joinrel(PlannerInfo *root, - RelOptInfo *childrel, RelOptInfo *parentrel); #endif /* PLACEHOLDER_H */ diff --git a/src/include/partitioning/partprune.h b/src/include/partitioning/partprune.h index 06080b19cc..81318c785a 100644 --- a/src/include/partitioning/partprune.h +++ b/src/include/partitioning/partprune.h @@ -41,7 +41,7 @@ struct RelOptInfo; * subsidiary data, such as the FmgrInfos. * planstate Points to the parent plan node's PlanState when called * during execution; NULL when called from the planner. - * exprstates Array of ExprStates, indexed as per PruneCtxStateIdx; one + * exprstates Array of ExprStates, indexed as per PruneCxtStateIdx; one * for each partition key in each pruning step. Allocated if * planstate is non-NULL, otherwise NULL. */ diff --git a/src/include/port/pg_bitutils.h b/src/include/port/pg_bitutils.h index fe7c3d0ffc..5197926696 100644 --- a/src/include/port/pg_bitutils.h +++ b/src/include/port/pg_bitutils.h @@ -67,7 +67,7 @@ pg_leftmost_one_pos64(uint64 word) shift -= 8; return shift + pg_leftmost_one_pos[(word >> shift) & 255]; -#endif /* HAVE__BUIILTIN_CLZ */ +#endif /* HAVE__BUILTIN_CLZ */ } /* diff --git a/src/include/utils/jsonapi.h b/src/include/utils/jsonapi.h index 35830df8c3..5f4d479a7b 100644 --- a/src/include/utils/jsonapi.h +++ b/src/include/utils/jsonapi.h @@ -145,7 +145,7 @@ typedef enum JsonToIndex jtiAll = jtiKey | jtiString | jtiNumeric | jtiBool } JsonToIndex; -/* an action that will be applied to each value in iterate_json(b)_vaues functions */ +/* an action that will be applied to each value in iterate_json(b)_values functions */ typedef void (*JsonIterateStringValuesAction) (void *state, char *elem_value, int elem_len); /* an action that will be applied to each value in transform_json(b)_values functions */ diff --git a/src/include/utils/sharedtuplestore.h b/src/include/utils/sharedtuplestore.h index 863c6e4f90..9dea626e84 100644 --- a/src/include/utils/sharedtuplestore.h +++ b/src/include/utils/sharedtuplestore.h @@ -1,7 +1,7 @@ /*------------------------------------------------------------------------- * * sharedtuplestore.h - * Simple mechinism for sharing tuples between backends. + * Simple mechanism for sharing tuples between backends. * * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California |