* Is the Index Acess Method used for indexing bson (as opposed to indexing TEXT, Vector, Points etc) * as indicated by enum MongoIndexKind_Regular. */
| 202 | * as indicated by enum MongoIndexKind_Regular. |
| 203 | */ |
| 204 | bool |
| 205 | IsBsonRegularIndexAm(Oid indexAm) |
| 206 | { |
| 207 | const BsonIndexAmEntry *amEntry = GetBsonIndexAmEntryByIndexOid(indexAm); |
| 208 | |
| 209 | /* If there are create index support functions, |
| 210 | * we assume it is a MongoIndexKind_Extended index, not a regular bson index. |
| 211 | */ |
| 212 | return amEntry != NULL && amEntry->create_indexes_support_funcs == NULL; |
| 213 | } |
| 214 | |
| 215 | |
| 216 | /* |
no test coverage detected