mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Fix many typos and inconsistencies
Author: Alexander Lakhin Discussion: https://postgr.es/m/af27d1b3-a128-9d62-46e0-88f424397f44@gmail.com
This commit is contained in:
@@ -55,7 +55,7 @@ typedef int16 AttrNumber;
|
||||
)
|
||||
|
||||
/*
|
||||
* AttributeOffsetGetAttributeNumber
|
||||
* AttrOffsetGetAttrNumber
|
||||
* Returns the attribute number for an attribute offset.
|
||||
*/
|
||||
#define AttrOffsetGetAttrNumber(attributeOffset) \
|
||||
|
@@ -457,7 +457,7 @@ extern void hashbucketcleanup(Relation rel, Bucket cur_bucket,
|
||||
BufferAccessStrategy bstrategy,
|
||||
uint32 maxbucket, uint32 highmask, uint32 lowmask,
|
||||
double *tuples_removed, double *num_index_tuples,
|
||||
bool bucket_has_garbage,
|
||||
bool split_cleanup,
|
||||
IndexBulkDeleteCallback callback, void *callback_state);
|
||||
|
||||
#endif /* HASH_H */
|
||||
|
@@ -40,7 +40,7 @@ typedef struct EventTriggerData
|
||||
((fcinfo)->context != NULL && IsA((fcinfo)->context, EventTriggerData))
|
||||
|
||||
extern Oid CreateEventTrigger(CreateEventTrigStmt *stmt);
|
||||
extern void RemoveEventTriggerById(Oid ctrigOid);
|
||||
extern void RemoveEventTriggerById(Oid trigOid);
|
||||
extern Oid get_event_trigger_oid(const char *trigname, bool missing_ok);
|
||||
|
||||
extern Oid AlterEventTrigger(AlterEventTrigStmt *stmt);
|
||||
|
@@ -51,6 +51,4 @@ extern char *get_extension_name(Oid ext_oid);
|
||||
extern ObjectAddress AlterExtensionNamespace(const char *extensionName, const char *newschema,
|
||||
Oid *oldschema);
|
||||
|
||||
extern void AlterExtensionOwner_oid(Oid extensionOid, Oid newOwnerId);
|
||||
|
||||
#endif /* EXTENSION_H */
|
||||
|
@@ -18,7 +18,7 @@
|
||||
/*
|
||||
* General executor code
|
||||
*/
|
||||
extern CustomScanState *ExecInitCustomScan(CustomScan *custom_scan,
|
||||
extern CustomScanState *ExecInitCustomScan(CustomScan *cscan,
|
||||
EState *estate, int eflags);
|
||||
extern void ExecEndCustomScan(CustomScanState *node);
|
||||
|
||||
|
@@ -252,7 +252,7 @@ extern Datum HeapTupleHeaderGetDatum(HeapTupleHeader tuple);
|
||||
* oldcontext = MemoryContextSwitchTo(funcctx->multi_call_memory_ctx);
|
||||
* <user defined code>
|
||||
* <if returning composite>
|
||||
* <build TupleDesc, and perhaps AttInMetaData>
|
||||
* <build TupleDesc, and perhaps AttInMetadata>
|
||||
* <endif returning composite>
|
||||
* <user defined code>
|
||||
* // return to original context when allocating transient memory
|
||||
|
@@ -940,7 +940,7 @@ typedef struct CaseWhen
|
||||
* We also abuse this node type for some other purposes, including:
|
||||
* * Placeholder for the current array element value in ArrayCoerceExpr;
|
||||
* see build_coercion_expression().
|
||||
* * Nested FieldStore/ArrayRef assignment expressions in INSERT/UPDATE;
|
||||
* * Nested FieldStore/SubscriptingRef assignment expressions in INSERT/UPDATE;
|
||||
* see transformAssignmentIndirection().
|
||||
*
|
||||
* The uses in CaseExpr and ArrayCoerceExpr are safe only to the extent that
|
||||
@@ -950,7 +950,7 @@ typedef struct CaseWhen
|
||||
* break it.
|
||||
*
|
||||
* The nested-assignment-expression case is safe because the only node types
|
||||
* that can be above such CaseTestExprs are FieldStore and ArrayRef.
|
||||
* that can be above such CaseTestExprs are FieldStore and SubscriptingRef.
|
||||
*/
|
||||
typedef struct CaseTestExpr
|
||||
{
|
||||
|
@@ -86,8 +86,6 @@ extern void cost_subqueryscan(SubqueryScanPath *path, PlannerInfo *root,
|
||||
RelOptInfo *baserel, ParamPathInfo *param_info);
|
||||
extern void cost_functionscan(Path *path, PlannerInfo *root,
|
||||
RelOptInfo *baserel, ParamPathInfo *param_info);
|
||||
extern void cost_tableexprscan(Path *path, PlannerInfo *root,
|
||||
RelOptInfo *baserel, ParamPathInfo *param_info);
|
||||
extern void cost_valuesscan(Path *path, PlannerInfo *root,
|
||||
RelOptInfo *baserel, ParamPathInfo *param_info);
|
||||
extern void cost_tablefuncscan(Path *path, PlannerInfo *root,
|
||||
|
@@ -96,8 +96,6 @@ extern SubqueryScanPath *create_subqueryscan_path(PlannerInfo *root,
|
||||
List *pathkeys, Relids required_outer);
|
||||
extern Path *create_functionscan_path(PlannerInfo *root, RelOptInfo *rel,
|
||||
List *pathkeys, Relids required_outer);
|
||||
extern Path *create_tablexprscan_path(PlannerInfo *root, RelOptInfo *rel,
|
||||
List *pathkeys, Relids required_outer);
|
||||
extern Path *create_valuesscan_path(PlannerInfo *root, RelOptInfo *rel,
|
||||
Relids required_outer);
|
||||
extern Path *create_tablefuncscan_path(PlannerInfo *root, RelOptInfo *rel,
|
||||
|
@@ -33,7 +33,7 @@
|
||||
* no way for them to share kernel file descriptors with other files.
|
||||
*
|
||||
* Likewise, use AllocateDir/FreeDir, not opendir/closedir, to allocate
|
||||
* open directories (DIR*), and OpenTransientFile/CloseTransient File for an
|
||||
* open directories (DIR*), and OpenTransientFile/CloseTransientFile for an
|
||||
* unbuffered file descriptor.
|
||||
*/
|
||||
#ifndef FD_H
|
||||
|
@@ -63,7 +63,7 @@ struct XidCache
|
||||
(PROC_IN_VACUUM | PROC_IN_ANALYZE | PROC_VACUUM_FOR_WRAPAROUND)
|
||||
|
||||
/*
|
||||
* We allow a small number of "weak" relation locks (AccesShareLock,
|
||||
* We allow a small number of "weak" relation locks (AccessShareLock,
|
||||
* RowShareLock, RowExclusiveLock) to be recorded in the PGPROC structure
|
||||
* rather than the main lock table. This eases contention on the lock
|
||||
* manager LWLocks. See storage/lmgr/README for additional details.
|
||||
|
@@ -9,11 +9,6 @@
|
||||
*
|
||||
* src/include/tcop/tcopprot.h
|
||||
*
|
||||
* OLD COMMENTS
|
||||
* This file was created so that other c files could get the two
|
||||
* function prototypes without having to include tcop.h which single
|
||||
* handedly includes the whole f*cking tree -- mer 5 Nov. 1991
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef TCOPPROT_H
|
||||
|
@@ -29,8 +29,6 @@ extern void AtEOXact_Inval(bool isCommit);
|
||||
|
||||
extern void AtEOSubXact_Inval(bool isCommit);
|
||||
|
||||
extern void AtPrepare_Inval(void);
|
||||
|
||||
extern void PostPrepare_Inval(void);
|
||||
|
||||
extern void CommandEndInvalidationMessages(void);
|
||||
|
@@ -184,8 +184,8 @@ typedef struct SortSupportData
|
||||
/*
|
||||
* Full, authoritative comparator for key that an abbreviated
|
||||
* representation was generated for, used when an abbreviated comparison
|
||||
* was inconclusive (by calling ApplySortComparatorFull()), or used to
|
||||
* replace "comparator" when core system ultimately decides against
|
||||
* was inconclusive (by calling ApplySortAbbrevFullComparator()), or used
|
||||
* to replace "comparator" when core system ultimately decides against
|
||||
* abbreviation.
|
||||
*/
|
||||
int (*abbrev_full_comparator) (Datum x, Datum y, SortSupport ssup);
|
||||
|
Reference in New Issue
Block a user