* Start a scan of `rel`. Returned tuples pass a visibility test of * `snapshot`, and if nkeys != 0, the results are filtered by those scan keys. */
| 1016 | * `snapshot`, and if nkeys != 0, the results are filtered by those scan keys. |
| 1017 | */ |
| 1018 | static inline TableScanDesc |
| 1019 | table_beginscan(Relation rel, Snapshot snapshot, |
| 1020 | int nkeys, struct ScanKeyData *key) |
| 1021 | { |
| 1022 | uint32 flags = SO_TYPE_SEQSCAN | |
| 1023 | SO_ALLOW_STRAT | SO_ALLOW_SYNC | SO_ALLOW_PAGEMODE; |
| 1024 | |
| 1025 | return rel->rd_tableam->scan_begin(rel, snapshot, nkeys, key, NULL, flags); |
| 1026 | } |
| 1027 | |
| 1028 | /* |
| 1029 | * GPDB: Like table_beginscan(), but first attempt to create a |
no outgoing calls
no test coverage detected