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) Yes (OSS) ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Today in OSS the query operator was evaluated at runtime - move this to expansion of hte operator at planning time using the simplify function.
19 lines
677 B
SQL
19 lines
677 B
SQL
|
|
CREATE OR REPLACE FUNCTION __API_CATALOG_SCHEMA__.query_match_support(internal)
|
|
RETURNS internal
|
|
LANGUAGE c
|
|
IMMUTABLE PARALLEL SAFE STRICT
|
|
AS 'MODULE_PATHNAME', $$query_match_support$$;
|
|
|
|
CREATE OR REPLACE FUNCTION __API_CATALOG_SCHEMA__.bson_query_match(__CORE_SCHEMA__.bson, __CORE_SCHEMA__.bson)
|
|
RETURNS bool
|
|
LANGUAGE c
|
|
IMMUTABLE PARALLEL SAFE STRICT
|
|
SUPPORT __API_CATALOG_SCHEMA__.query_match_support
|
|
AS 'MODULE_PATHNAME', $function$bson_query_match$function$;
|
|
|
|
CREATE OR REPLACE FUNCTION __API_CATALOG_SCHEMA__.bson_true_match(__CORE_SCHEMA__.bson)
|
|
RETURNS bool
|
|
LANGUAGE c
|
|
IMMUTABLE PARALLEL SAFE STRICT
|
|
AS 'MODULE_PATHNAME', $function$bson_true_match$function$; |