* table_rescan_tidrange resets the scan position and sets the minimum and * maximum TID range to scan for a TableScanDesc created by * table_beginscan_tidrange. */
| 1279 | * table_beginscan_tidrange. |
| 1280 | */ |
| 1281 | static inline void |
| 1282 | table_rescan_tidrange(TableScanDesc sscan, ItemPointer mintid, |
| 1283 | ItemPointer maxtid) |
| 1284 | { |
| 1285 | /* Ensure table_beginscan_tidrange() was used. */ |
| 1286 | Assert((sscan->rs_flags & SO_TYPE_TIDRANGESCAN) != 0); |
| 1287 | |
| 1288 | sscan->rs_rd->rd_tableam->scan_rescan(sscan, NULL, false, false, false, false); |
| 1289 | sscan->rs_rd->rd_tableam->scan_set_tidrange(sscan, mintid, maxtid); |
| 1290 | } |
| 1291 | |
| 1292 | /* |
| 1293 | * Fetch the next tuple from `sscan` for a TID range scan created by |