mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Remove some more "snapshot too old" vestiges.
Commit f691f5b8
removed the logic, but left behind some now-useless
Snapshot arguments to various AM-internal functions, and missed a couple
of comments.
Reported-by: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAH2-Wznj9qSNXZ1P1uWTUD_FeaTezbUazb416EPwi4Qr_jR_6A%40mail.gmail.com
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
typedef struct BrinRevmap BrinRevmap;
|
||||
|
||||
extern BrinRevmap *brinRevmapInitialize(Relation idxrel,
|
||||
BlockNumber *pagesPerRange, Snapshot snapshot);
|
||||
BlockNumber *pagesPerRange);
|
||||
extern void brinRevmapTerminate(BrinRevmap *revmap);
|
||||
|
||||
extern void brinRevmapExtend(BrinRevmap *revmap,
|
||||
@@ -35,7 +35,7 @@ extern void brinSetHeapBlockItemptr(Buffer buf, BlockNumber pagesPerRange,
|
||||
BlockNumber heapBlk, ItemPointerData tid);
|
||||
extern BrinTuple *brinGetTupleForHeapBlock(BrinRevmap *revmap,
|
||||
BlockNumber heapBlk, Buffer *buf, OffsetNumber *off,
|
||||
Size *size, int mode, Snapshot snapshot);
|
||||
Size *size, int mode);
|
||||
extern bool brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk);
|
||||
|
||||
#endif /* BRIN_REVMAP_H */
|
||||
|
@@ -202,7 +202,7 @@ typedef struct
|
||||
*/
|
||||
|
||||
extern GinBtreeStack *ginFindLeafPage(GinBtree btree, bool searchMode,
|
||||
bool rootConflictCheck, Snapshot snapshot);
|
||||
bool rootConflictCheck);
|
||||
extern Buffer ginStepRight(Buffer buffer, Relation index, int lockmode);
|
||||
extern void freeGinBtreeStack(GinBtreeStack *stack);
|
||||
extern void ginInsertValue(GinBtree btree, GinBtreeStack *stack,
|
||||
@@ -230,7 +230,7 @@ extern void GinPageDeletePostingItem(Page page, OffsetNumber offset);
|
||||
extern void ginInsertItemPointers(Relation index, BlockNumber rootBlkno,
|
||||
ItemPointerData *items, uint32 nitem,
|
||||
GinStatsData *buildStats);
|
||||
extern GinBtreeStack *ginScanBeginPostingTree(GinBtree btree, Relation index, BlockNumber rootBlkno, Snapshot snapshot);
|
||||
extern GinBtreeStack *ginScanBeginPostingTree(GinBtree btree, Relation index, BlockNumber rootBlkno);
|
||||
extern void ginDataFillRoot(GinBtree btree, Page root, BlockNumber lblkno, Page lpage, BlockNumber rblkno, Page rpage);
|
||||
|
||||
/*
|
||||
|
@@ -1231,16 +1231,15 @@ extern void _bt_pendingfsm_finalize(Relation rel, BTVacState *vstate);
|
||||
* prototypes for functions in nbtsearch.c
|
||||
*/
|
||||
extern BTStack _bt_search(Relation rel, Relation heaprel, BTScanInsert key,
|
||||
Buffer *bufP, int access, Snapshot snapshot);
|
||||
Buffer *bufP, int access);
|
||||
extern Buffer _bt_moveright(Relation rel, Relation heaprel, BTScanInsert key,
|
||||
Buffer buf, bool forupdate, BTStack stack,
|
||||
int access, Snapshot snapshot);
|
||||
int access);
|
||||
extern OffsetNumber _bt_binsrch_insert(Relation rel, BTInsertState insertstate);
|
||||
extern int32 _bt_compare(Relation rel, BTScanInsert key, Page page, OffsetNumber offnum);
|
||||
extern bool _bt_first(IndexScanDesc scan, ScanDirection dir);
|
||||
extern bool _bt_next(IndexScanDesc scan, ScanDirection dir);
|
||||
extern Buffer _bt_get_endpoint(Relation rel, uint32 level, bool rightmost,
|
||||
Snapshot snapshot);
|
||||
extern Buffer _bt_get_endpoint(Relation rel, uint32 level, bool rightmost);
|
||||
|
||||
/*
|
||||
* prototypes for functions in nbtutils.c
|
||||
|
Reference in New Issue
Block a user