mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description - This is the second part of the plumbing for composite indexes. - Add the planner and query integration to push $eq filters in the composite index Still not done: - Correctness of query - inequality and other operators (`$in/$regex/etc`) - Type bracketing - Truncation ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request integrates a planner and adds basic plumbing for composite index operations. - `bson_gin_composite_entrypoint.c`: Added functions for handling composite index paths, parsing bounds, and modifying scan keys. - `bson_composite_index_tests_insert_terms.out`: Added tests to validate composite index functionality and queries. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
31 lines
940 B
C
31 lines
940 B
C
/*-------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
*
|
|
* include/index_am/documentdb_rum.h
|
|
*
|
|
* Common declarations for RUM specific helper functions.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef DOCUMENTDB_RUM_H
|
|
#define DOCUMENTDB_RUM_H
|
|
|
|
#include <fmgr.h>
|
|
#include <access/amapi.h>
|
|
#include <nodes/pathnodes.h>
|
|
|
|
IndexAmRoutine *GetRumIndexHandler(PG_FUNCTION_ARGS);
|
|
|
|
void extension_rumrescan_core(IndexScanDesc scan, ScanKey scankey, int nscankeys,
|
|
ScanKey orderbys, int norderbys, amrescan_function
|
|
core_rescanfunc);
|
|
void extension_rumcostestimate(PlannerInfo *root, IndexPath *path, double
|
|
loop_count,
|
|
Cost *indexStartupCost, Cost *indexTotalCost,
|
|
Selectivity *indexSelectivity,
|
|
double *indexCorrelation,
|
|
double *indexPages);
|
|
|
|
#endif
|