]> granicus.if.org Git - postgresql/blobdiff - src/backend/executor/nodeBitmapHeapscan.c
Modify BufferGetPage() to prepare for "snapshot too old" feature
[postgresql] / src / backend / executor / nodeBitmapHeapscan.c
index 449aacb6e740a75fa9c85356eeaef0aa080f0115..b7a2ca7fc61f87847bac052b608a8df13de0d8a0 100644 (file)
@@ -257,7 +257,7 @@ BitmapHeapNext(BitmapHeapScanState *node)
                 * Okay to fetch the tuple
                 */
                targoffset = scan->rs_vistuples[scan->rs_cindex];
-               dp = (Page) BufferGetPage(scan->rs_cbuf);
+               dp = BufferGetPage(scan->rs_cbuf, NULL, NULL, BGP_NO_SNAPSHOT_TEST);
                lp = PageGetItemId(dp, targoffset);
                Assert(ItemIdIsNormal(lp));
 
@@ -375,7 +375,7 @@ bitgetpage(HeapScanDesc scan, TBMIterateResult *tbmres)
                 * Bitmap is lossy, so we must examine each item pointer on the page.
                 * But we can ignore HOT chains, since we'll check each tuple anyway.
                 */
-               Page            dp = (Page) BufferGetPage(buffer);
+               Page            dp = BufferGetPage(buffer, NULL, NULL, BGP_NO_SNAPSHOT_TEST);
                OffsetNumber maxoff = PageGetMaxOffsetNumber(dp);
                OffsetNumber offnum;