diff options
author | Michael Paquier | 2019-07-08 04:15:09 +0000 |
---|---|---|
committer | Michael Paquier | 2019-07-08 04:15:09 +0000 |
commit | 6b8548964bccd0f2e65c687d591b7345d5146bfa (patch) | |
tree | 29cddb4e0aa0bc59b02850daf6f508394f8f0ec1 /src/include | |
parent | 7e9a4c5c3dca0d9637812d8991e96fc8f46800d9 (diff) |
Fix inconsistencies in the code
This addresses a couple of issues in the code:
- Typos and inconsistencies in comments and function declarations.
- Removal of unreferenced function declarations.
- Removal of unnecessary compile flags.
- A cleanup error in regressplans.sh.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/heapam.h | 2 | ||||
-rw-r--r-- | src/include/access/timeline.h | 2 | ||||
-rw-r--r-- | src/include/executor/executor.h | 2 | ||||
-rw-r--r-- | src/include/executor/tablefunc.h | 6 | ||||
-rw-r--r-- | src/include/nodes/execnodes.h | 2 | ||||
-rw-r--r-- | src/include/partitioning/partprune.h | 8 | ||||
-rw-r--r-- | src/include/port/atomics/generic-acc.h | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index dffb57bf11a..858bcb6bc96 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -112,7 +112,7 @@ extern TableScanDesc heap_beginscan(Relation relation, Snapshot snapshot, ParallelTableScanDesc parallel_scan, uint32 flags); extern void heap_setscanlimits(TableScanDesc scan, BlockNumber startBlk, - BlockNumber endBlk); + BlockNumber numBlks); extern void heapgetpage(TableScanDesc scan, BlockNumber page); extern void heap_rescan(TableScanDesc scan, ScanKey key, bool set_params, bool allow_strat, bool allow_sync, bool allow_pagemode); diff --git a/src/include/access/timeline.h b/src/include/access/timeline.h index a6dc2edb893..e83a73a3f1e 100644 --- a/src/include/access/timeline.h +++ b/src/include/access/timeline.h @@ -36,7 +36,7 @@ extern void writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI, XLogRecPtr switchpoint, char *reason); extern void writeTimeLineHistoryFile(TimeLineID tli, char *content, int size); extern void restoreTimeLineHistoryFiles(TimeLineID begin, TimeLineID end); -extern bool tliInHistory(TimeLineID tli, List *expectedTLIs); +extern bool tliInHistory(TimeLineID tli, List *expectedTLEs); extern TimeLineID tliOfPointInHistory(XLogRecPtr ptr, List *history); extern XLogRecPtr tliSwitchPoint(TimeLineID tli, List *history, TimeLineID *nextTLI); diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index d056fd61513..1fb28b4596b 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -314,7 +314,7 @@ ExecEvalExprSwitchContext(ExprState *state, * ExecProject * * Projects a tuple based on projection info and stores it in the slot passed - * to ExecBuildProjectInfo(). + * to ExecBuildProjectionInfo(). * * Note: the result is always a virtual tuple; therefore it may reference * the contents of the exprContext's scan tuples and/or temporary results diff --git a/src/include/executor/tablefunc.h b/src/include/executor/tablefunc.h index 926bd570145..838c2c2ca29 100644 --- a/src/include/executor/tablefunc.h +++ b/src/include/executor/tablefunc.h @@ -20,11 +20,11 @@ struct TableFuncScanState; * TableFuncRoutine holds function pointers used for generating content of * table-producer functions, such as XMLTABLE. * - * InitBuilder initialize table builder private objects. The output tuple + * InitOpaque initializes table builder private objects. The output tuple * descriptor, input functions for the columns, and typioparams are passed * from executor state. * - * SetDoc is called to define the input document. The table builder may + * SetDocument is called to define the input document. The table builder may * apply additional transformations not exposed outside the table builder * context. * @@ -45,7 +45,7 @@ struct TableFuncScanState; * builder context such that each subsequent GetValue call returns the values * for the indicated column for the row being processed. * - * DestroyBuilder shall release all resources associated with a table builder + * DestroyOpaque 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 occurred while processing the table expression. */ diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 99b9fa414f1..98bdcbcef5a 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -593,7 +593,7 @@ typedef struct EState * and with which options. es_jit is created on-demand when JITing is * performed. * - * es_jit_combined_instr is the combined, on demand allocated, + * es_jit_worker_instr is the combined, on demand allocated, * instrumentation from all workers. The leader's instrumentation is kept * separate, and is combined on demand by ExplainPrintJITSummary(). */ diff --git a/src/include/partitioning/partprune.h b/src/include/partitioning/partprune.h index 81318c785a0..b3e926865ae 100644 --- a/src/include/partitioning/partprune.h +++ b/src/include/partitioning/partprune.h @@ -60,10 +60,10 @@ typedef struct PartitionPruneContext } PartitionPruneContext; /* - * PruneCxtStateIdx() computes the correct index into the stepcmpfuncs[], - * exprstates[] and exprhasexecparam[] arrays for step step_id and - * partition key column keyno. (Note: there is code that assumes the - * entries for a given step are sequential, so this is not chosen freely.) + * PruneCxtStateIdx() computes the correct index into the stepcmpfuncs[] + * and exprstates[] arrays for step step_id and partition key column keyno. + * (Note: there is code that assumes the entries for a given step are + * sequential, so this is not chosen freely.) */ #define PruneCxtStateIdx(partnatts, step_id, keyno) \ ((partnatts) * (step_id) + (keyno)) diff --git a/src/include/port/atomics/generic-acc.h b/src/include/port/atomics/generic-acc.h index eec5063cbc4..a64c841f4f1 100644 --- a/src/include/port/atomics/generic-acc.h +++ b/src/include/port/atomics/generic-acc.h @@ -68,7 +68,7 @@ pg_atomic_compare_exchange_u32_impl(volatile pg_atomic_uint32 *ptr, _Asm_mf(); /* * Notes: - * DOWN_MEM_FENCE | _UP_MEM_FENCE prevents reordering by the compiler + * _DOWN_MEM_FENCE | _UP_MEM_FENCE prevents reordering by the compiler */ current = _Asm_cmpxchg(_SZ_W, /* word */ _SEM_REL, |