* Restart a relation scan after changing params. * * This call allows changing the buffer strategy, syncscan, and pagemode * options before starting a fresh scan. Note that although the actual use of * syncscan might change (effectively, enabling or disabling reporting), the * previously selected startblock will be kept. */
| 1216 | * previously selected startblock will be kept. |
| 1217 | */ |
| 1218 | static inline void |
| 1219 | table_rescan_set_params(TableScanDesc scan, struct ScanKeyData *key, |
| 1220 | bool allow_strat, bool allow_sync, bool allow_pagemode) |
| 1221 | { |
| 1222 | scan->rs_rd->rd_tableam->scan_rescan(scan, key, true, |
| 1223 | allow_strat, allow_sync, |
| 1224 | allow_pagemode); |
| 1225 | } |
| 1226 | |
| 1227 | /* |
| 1228 | * Update snapshot used by the scan. |