* command_record_id_index inserts a record into ApiCatalogSchemaName.collection_indexes * for built-in "_id" index on collection with collectionId. * * Assumes that index is already created, so sets index_is_valid to true. */
| 106 | * Assumes that index is already created, so sets index_is_valid to true. |
| 107 | */ |
| 108 | Datum |
| 109 | command_record_id_index(PG_FUNCTION_ARGS) |
| 110 | { |
| 111 | if (PG_ARGISNULL(0)) |
| 112 | { |
| 113 | ereport(ERROR, (errmsg("Collection ID must not be NULL"))); |
| 114 | } |
| 115 | uint64 collectionId = DatumGetUInt64(PG_GETARG_DATUM(0)); |
| 116 | |
| 117 | IndexSpec idIndexSpec = MakeIndexSpecForBuiltinIdIndex(); |
| 118 | bool indexIsValid = true; |
| 119 | RecordCollectionIndex(collectionId, &idIndexSpec, indexIsValid); |
| 120 | |
| 121 | PG_RETURN_VOID(); |
| 122 | } |
| 123 | |
| 124 | |
| 125 | /* |
nothing calls this directly
no test coverage detected