* Is the Index Access Method an extended index (not a regular bson index, TEXT, Vector, Points etc) */
| 217 | * Is the Index Access Method an extended index (not a regular bson index, TEXT, Vector, Points etc) |
| 218 | */ |
| 219 | bool |
| 220 | IsExtendedIndexAm(Oid indexAm) |
| 221 | { |
| 222 | if (!EnableExtendedIndexes) |
| 223 | { |
| 224 | return false; |
| 225 | } |
| 226 | |
| 227 | const BsonIndexAmEntry *amEntry = GetBsonIndexAmEntryByIndexOid(indexAm); |
| 228 | |
| 229 | /* If there are create index support functions, |
| 230 | * we assume it is a MongoIndexKind_Extended index, not a regular bson index. |
| 231 | */ |
| 232 | return amEntry != NULL && amEntry->create_indexes_support_funcs != NULL; |
| 233 | } |
| 234 | |
| 235 | |
| 236 | /* |
no test coverage detected