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) Refactoring ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) Yes ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Move udf files from pg_helio_api -> pg_documentdb ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary This pull request moves User Defined Function (UDF) files from the `pg_helio_api` directory to the `pg_documentdb` directory. - Updated `pgmongo/sql/pgmongo--1.23-0--1.24-0.sql` to include UDFs from `pg_documentdb` instead of `pg_helio_api`. - Modified `oss/pg_helio_api/sql/pg_helio_api--1.15-0--1.16-0.sql` to reference UDFs from `pg_documentdb`. - Adjusted `oss/pg_helio_api/sql/pg_helio_api--1.10-0.sql` to include UDFs from `pg_documentdb`. - Updated `scripts/validate_helio_extension_state.sh` to add validation exceptions for the moved UDF files. - Changed `pgmongo/sql/pgmongo--1.21-0--1.22-0.sql` to reference UDFs from `pg_documentdb`.
138 lines
4.9 KiB
SQL
138 lines
4.9 KiB
SQL
|
|
CREATE SCHEMA helio_api;
|
|
CREATE SCHEMA helio_api_internal;
|
|
CREATE SCHEMA helio_api_catalog;
|
|
CREATE SCHEMA helio_data;
|
|
|
|
SET search_path TO helio_api;
|
|
|
|
/*
|
|
* Region: Query functions
|
|
*/
|
|
#include "udfs/query/bson_query_match--1.10-0.sql"
|
|
|
|
#include "udfs/query/bson_dollar_comparison--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/query/bson_dollar_array--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/query/bson_dollar_element_bitwise--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/query/bson_dollar_geospatial--0.10-0.sql"
|
|
#include "udfs/query/bson_dollar_evaluation--1.10-0.sql"
|
|
|
|
#include "udfs/query/bson_orderby--1.10-0.sql"
|
|
|
|
#include "udfs/projection/bson_projection--1.10-0.sql"
|
|
#include "udfs/projection/bson_expression--1.10-0.sql"
|
|
|
|
|
|
#include "pg_documentdb/sql/udfs/query/bsonquery_dollar_operators--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Query operators
|
|
*/
|
|
#include "pg_documentdb/sql/operators/bson_query_operators--0.10-0.sql"
|
|
#include "pg_documentdb/sql/operators/bson_partial_filter_operators--0.10-0.sql"
|
|
#include "pg_documentdb/sql/operators/bsonquery_dollar_operators--0.10-0.sql"
|
|
|
|
#include "pg_documentdb/sql/operators/bsonquery_btree_family--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Shard key and document
|
|
*/
|
|
#include "pg_documentdb/sql/schema/shard_key_and_document--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: RUM operators and functions
|
|
*/
|
|
#include "pg_documentdb/sql/udfs/rum/handler--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/rum/extensibility_functions--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/rum/single_path_extensibility_functions--0.10-0.sql"
|
|
#include "udfs/rum/bson_preconsistent--1.10-0.sql"
|
|
#include "pg_documentdb/sql/operators/bson_path_operators--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: RUM metadata
|
|
*/
|
|
#include "pg_documentdb/sql/schema/rum_access_method--0.10-0.sql"
|
|
#include "pg_documentdb/sql/schema/single_path_operator_class--0.10-0.sql"
|
|
|
|
-- TODO: Re-enable this for Helio when ready
|
|
-- #include "pg_documentdb/sql/schema/index_operator_classes_preconsistent--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Aggregation operators.
|
|
*/
|
|
#include "pg_documentdb/sql/udfs/aggregation/bson_aggregation_support--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/aggregation/bson_aggregation_pipeline--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/aggregation/bson_aggregation_find--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/aggregation/bson_aggregation_count--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/aggregation/bson_aggregation_distinct--0.10-0.sql"
|
|
|
|
#include "udfs/aggregation/group_aggregates_support--1.10-0.sql"
|
|
#include "udfs/aggregation/group_aggregates--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/aggregation/bson_unwind_functions--0.10-0.sql"
|
|
#include "udfs/aggregation/bson_lookup_functions--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/aggregation/distinct_aggregates--0.10-0.sql"
|
|
|
|
#include "udfs/metadata/empty_data_table--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/metadata/collection--0.10-0.sql"
|
|
|
|
|
|
/*
|
|
* Region: Collection Metadata
|
|
*/
|
|
#include "udfs/metadata/collection_metadata_functions--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/metadata/collection_indexes_metadata_functions--0.10-0.sql"
|
|
|
|
#include "pg_documentdb/sql/schema/collection_metadata--0.10-0.sql"
|
|
#include "pg_documentdb/sql/schema/collection_metadata_views--0.10-0.sql"
|
|
#include "pg_documentdb/sql/schema/collection_metadata_schemavalidation--0.10-0.sql"
|
|
|
|
#include "pg_documentdb/sql/schema/collection_indexes_metadata--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Sharding Metadata
|
|
*/
|
|
#include "pg_documentdb/sql/udfs/metadata/sharding_metadata_functions--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Schema Management APIs
|
|
*/
|
|
#include "udfs/schema_mgmt/create_collection--1.10-0.sql"
|
|
#include "udfs/schema_mgmt/shard_collection--1.10-0.sql"
|
|
|
|
/*
|
|
* Region: Index Manangement APIs
|
|
*/
|
|
#include "udfs/index_mgmt/create_indexes_non_concurrently--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/index_mgmt/create_builtin_id_index--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/index_mgmt/record_id_index--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/index_mgmt/index_build_is_in_progress--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/index_mgmt/index_spec_as_bson--0.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/index_mgmt/index_spec_options_are_equivalent--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Basic CRUD APIs & Commands
|
|
*/
|
|
#include "udfs/commands_crud/insert--1.10-0.sql"
|
|
#include "udfs/commands_crud/insert_one_helper--1.10-0.sql"
|
|
|
|
#include "pg_documentdb/sql/udfs/commands_crud/bson_update_document--0.10-0.sql"
|
|
#include "udfs/commands_crud/update--1.10-0.sql"
|
|
|
|
#include "udfs/commands_crud/delete--1.10-0.sql"
|
|
#include "udfs/commands_crud/find_and_modify--1.10-0.sql"
|
|
|
|
#include "udfs/commands_crud/query_cursors_aggregate--1.10-0.sql"
|
|
#include "pg_documentdb/sql/udfs/commands_crud/query_cursors_single_page--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: RBAC Metadata
|
|
*/
|
|
#include "pg_documentdb/sql/rbac/extension_admin_setup--0.10-0.sql"
|
|
|
|
/*
|
|
* Region: Background Index Schema
|
|
*/
|
|
#include "schema/background_index_queue--1.10-0.sql"
|
|
|
|
RESET search_path;
|