diff options
author | Amit Kapila <akapila@postgresql.org> | 2019-06-08 08:16:38 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2019-06-08 08:16:38 +0530 |
commit | 92c4abc73693690ce9ff13ede160f0dcb0a2de7b (patch) | |
tree | c1264a8f33374569298e2e72feaeda929adef09e /src/include | |
parent | 35b2d4bc0eb5d61a2a294ccb6b2e4abdad307604 (diff) |
Fix assorted inconsistencies.
There were a number of issues in the recent commits which include typos,
code and comments mismatch, leftover function declarations. Fix them.
Reported-by: Alexander Lakhin
Author: Alexander Lakhin, Amit Kapila and Amit Langote
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/ef0c0232-0c1d-3a35-63d4-0ebd06e31387@gmail.com
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/heapam.h | 2 | ||||
-rw-r--r-- | src/include/access/tableam.h | 4 | ||||
-rw-r--r-- | src/include/executor/executor.h | 1 | ||||
-rw-r--r-- | src/include/storage/sync.h | 2 |
4 files changed, 3 insertions, 6 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index b88bd8a4d73..dffb57bf11a 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -116,8 +116,6 @@ extern void heap_setscanlimits(TableScanDesc scan, BlockNumber startBlk, 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); -extern void heap_rescan_set_params(TableScanDesc scan, ScanKey key, - bool allow_strat, bool allow_sync, bool allow_pagemode); extern void heap_endscan(TableScanDesc scan); extern HeapTuple heap_getnext(TableScanDesc scan, ScanDirection direction); extern bool heap_getnextslot(TableScanDesc sscan, diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index c4e43b0e6e2..585c120e188 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -690,7 +690,7 @@ typedef struct TableAmRoutine * block using the TsmRoutine's NextSampleTuple() callback. * * The callback needs to perform visibility checks, and only return - * visible tuples. That obviously can mean calling NextSampletuple() + * visible tuples. That obviously can mean calling NextSampleTuple() * multiple times. * * The TsmRoutine interface assumes that there's a maximum offset on a @@ -1596,7 +1596,7 @@ table_relation_size(Relation rel, ForkNumber forkNumber) } /* - * table_needs_toast_table - does this relation need a toast table? + * table_relation_needs_toast_table - does this relation need a toast table? */ static inline bool table_relation_needs_toast_table(Relation rel) diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index 88134bcc715..d056fd61513 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -514,7 +514,6 @@ extern ExprContext *MakePerTupleExprContext(EState *estate); extern void ExecAssignExprContext(EState *estate, PlanState *planstate); extern TupleDesc ExecGetResultType(PlanState *planstate); -extern TupleTableSlot ExecGetResultSlot(PlanState *planstate); extern const TupleTableSlotOps *ExecGetResultSlotOps(PlanState *planstate, bool *isfixed); extern void ExecAssignProjectionInfo(PlanState *planstate, diff --git a/src/include/storage/sync.h b/src/include/storage/sync.h index 1e453a5b30a..16428c5f5fb 100644 --- a/src/include/storage/sync.h +++ b/src/include/storage/sync.h @@ -44,7 +44,7 @@ typedef enum SyncRequestHandler */ typedef struct FileTag { - int16 handler; /* SyncRequstHandler value, saving space */ + int16 handler; /* SyncRequestHandler value, saving space */ int16 forknum; /* ForkNumber, saving space */ RelFileNode rnode; uint32 segno; |