mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Fix more typos and inconsistencies in the tree
Author: Alexander Lakhin Discussion: https://postgr.es/m/0a5419ea-1452-a4e6-72ff-545b1a5a8076@gmail.com
This commit is contained in:
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
@@ -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.
|
||||
*----------
|
||||
*/
|
||||
|
@@ -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 */
|
||||
|
@@ -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.
|
||||
*/
|
||||
|
@@ -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 */
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user