Files
documentdb/pg_documentdb
Vinod Sridharan 46948103f8 Merged PR 1681443: Dollar Range Fix for Composite Indexes
### Does this PR have any customer impact?
No

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

### 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
Fix bug with composite index and NaN query - this was due to `$range` not pushing the individual $lt/$lte clauses - call into common code here.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix addressing incorrect dollar range handling for composite indexes and related configuration/script adjustments.

#### PR Summary
This pull request refactors the dollar range logic in composite indexes by replacing legacy bound assignments with a strategy-based approach and streamlines associated configuration scripts.
- **`/oss/pg_documentdb/src/opclass/bson_gin_composite_core.c`**: Replaces manual bound calculation with a new strategy (using SetSingleRangeBoundsFromStrategy) to properly handle inclusive/exclusive bounds for both minimum and maximum values.
- **Shell scripts (`/scripts/utils.sh` and `/scripts/start_postgres_server.sh`)**: Remove deprecated gateway parameter handling and add extra configuration file support.
- **Test output files**: Update expected query results by removing unnecessary _id filtering and reflecting corrected row outputs.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-05-29 12:12:31 +08:00
..