summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
authorDavid Rowley2024-04-04 03:41:13 +0000
committerDavid Rowley2024-04-04 03:41:13 +0000
commit44086b097537a8157ee1dd98d6635b3503f2f534 (patch)
tree4f0ce528bb5a901bb8295730f2848bfe44651cf6 /src/include/access
parent85230a247c74b92d9676abdf6693ac9d56c373cf (diff)
Preliminary refactor of heap scanning functions
To allow the use of the read stream API added in b5a9b18cd for sequential scans on heap tables, here we make some adjustments to make that change less invasive and perhaps make the code easier to follow in the process. Here heapgetpage() gets broken into two functions: 1) The part which reads the block has now been moved into a function named heapfetchbuf(). 2) The part which performed pruning and populated the scan's rs_vistuples[] array is now moved into a new function named heap_prepare_pagescan(). The functionality provided by heap_prepare_pagescan() was only ever required by SO_ALLOW_PAGEMODE scans, so the branching that was previously done in heapgetpage() is no longer needed as we simply just don't call heap_prepare_pagescan() from heapgettup() in the refactored code. Author: Melanie Plageman Discussion: https://postgr.es/m/CAAKRu_YtXJiYKQvb5JsA2SkwrsizYLugs4sSOZh3EAjKUg=gEQ@mail.gmail.com
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/heapam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index a307fb5f245..2765efc4e5e 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -267,7 +267,7 @@ extern TableScanDesc heap_beginscan(Relation relation, Snapshot snapshot,
uint32 flags);
extern void heap_setscanlimits(TableScanDesc sscan, BlockNumber startBlk,
BlockNumber numBlks);
-extern void heapgetpage(TableScanDesc sscan, BlockNumber block);
+extern void heap_prepare_pagescan(TableScanDesc sscan);
extern void heap_rescan(TableScanDesc sscan, ScanKey key, bool set_params,
bool allow_strat, bool allow_sync, bool allow_pagemode);
extern void heap_endscan(TableScanDesc sscan);