| 290 | |
| 291 | |
| 292 | void |
| 293 | TryExplainByIndexAm(struct IndexScanDescData *scan, ExplainWriterFuncs *writeFuncs, |
| 294 | void *writerState) |
| 295 | { |
| 296 | const BsonIndexAmEntry *amEntry = GetBsonIndexAmEntryByIndexOid( |
| 297 | scan->indexRelation->rd_rel->relam); |
| 298 | |
| 299 | if (amEntry == NULL || amEntry->add_explain_output == NULL) |
| 300 | { |
| 301 | /* No explain output for this index AM */ |
| 302 | return; |
| 303 | } |
| 304 | |
| 305 | amEntry->add_explain_output(scan, writerState, writeFuncs); |
| 306 | } |
| 307 | |
| 308 | |
| 309 | /* |
no test coverage detected