---------------------------------------------------------------- * ExecInitIndexOnlyScan * * Initializes the index scan's state information, creates * scan keys, and opens the base and index relations. * * Note: index scans have 2 sets of state information because * we have to keep track of the base relation and the * index relation. * -----------------------------------------
| 489 | * ---------------------------------------------------------------- |
| 490 | */ |
| 491 | IndexOnlyScanState * |
| 492 | ExecInitIndexOnlyScan(IndexOnlyScan *node, EState *estate, int eflags) |
| 493 | { |
| 494 | Relation currentRelation; |
| 495 | |
| 496 | /* |
| 497 | * open the scan relation |
| 498 | */ |
| 499 | currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags); |
| 500 | |
| 501 | return ExecInitIndexOnlyScanForPartition(node, estate, eflags, |
| 502 | currentRelation, node->indexid); |
| 503 | } |
| 504 | |
| 505 | IndexOnlyScanState * |
| 506 | ExecInitIndexOnlyScanForPartition(IndexOnlyScan *node, EState *estate, int eflags, |
no test coverage detected