| 1040 | |
| 1041 | |
| 1042 | IndexScanDesc |
| 1043 | extension_rumbeginscan_core(Relation rel, int nkeys, int norderbys, |
| 1044 | IndexAmRoutine *coreRoutine) |
| 1045 | { |
| 1046 | if (IsCompositeOpClass(rel)) |
| 1047 | { |
| 1048 | IndexScanDesc scan = RelationGetIndexScan(rel, nkeys, norderbys); |
| 1049 | |
| 1050 | DocumentDBRumIndexState *outerScanState = palloc0( |
| 1051 | sizeof(DocumentDBRumIndexState)); |
| 1052 | scan->opaque = outerScanState; |
| 1053 | outerScanState->scanDirection = ForwardScanDirection; |
| 1054 | |
| 1055 | /* Don't yet start inner scan here - instead wait until rescan to begin */ |
| 1056 | return scan; |
| 1057 | } |
| 1058 | else |
| 1059 | { |
| 1060 | return coreRoutine->ambeginscan(rel, nkeys, norderbys); |
| 1061 | } |
| 1062 | } |
| 1063 | |
| 1064 | |
| 1065 | static void |
no test coverage detected