2 Commits
Author SHA1 Message Date
Shuai Tian d11734352b Merged PR 1548309: [OSS] Migrate schema from helio_api_distributed to documentdb_api_distributed - part2
### Does this PR have any customer impact?

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

### Are you introducing any new config? If yes, do you have tests with and without them being set?

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description

----
#### AI description  (iteration 1)
#### PR Classification
Schema migration

#### PR Summary
This pull request migrates the schema from `helio_api_distributed` to `documentdb_api_distributed`.
- Updated function definitions in `sql/udfs/clustermgmt/cluster_version_utils--0.21-0.sql` and `cluster_version_utils--latest.sql` to use `__API_SCHEMA_INTERNAL__`.
- Modified function definitions in `sql/udfs/rebalancer/rebalancer_operations--0.24-0.sql` and `rebalancer_operations--latest.sql` to use `__DISTRIBUTED_SCHEMA__`.
- Added schema creation and table initialization in `sql/documentdb_distributed--0.24-0.sql`.
- Updated `Makefile.cflags` and `Makefile` to include `DISTRIBUTED_SCHEMA_NAME` and related configurations.
- Adjusted test and validation scripts to reflect the new schema names.
2025-01-15 07:48:41 +00:00
Vinod Sridharan 491b8cd585 Merged PR 1541964: [OSS] Move all GUCs to a neutral prefix
### Does this PR have any customer impact?
No
### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Refactor
### 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?

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
- Redo GUCs for helio -> documentdb preserving back-compat for the service.
- Move Docdb version to 1.24 -> 0.24

----
#### AI description  (iteration 1)
#### PR Classification
API change

#### PR Summary
This pull request updates the prefix for all GUCs (Grand Unified Configuration) to a neutral prefix.
- `documentdb_init.c`: Changed GUCs from "helio_api" to a dynamic prefix using `psprintf`.
- `documentdb_distributed_init.c` and `documentdb_distributed.c`: Updated GUCs to use a dynamic prefix.
- `pg_documentdb.c`, `pg_helio_api.c`, and `pgmongo.c`: Modified initialization functions to pass the new GUC prefix.
- `helio_api_init.h` and `helio_distributed_init.h`: Updated function signatures to include the new GUC prefix parameter.
- Updated control files to reflect the new version `0.24-0`.
2025-01-15 07:48:40 +00:00