Files
documentdb/internal/pg_documentdb_distributed/src
Jayanta Mondal c58c166417 Merged PR 1578348: [Engine] Putting push down sort by _id to primary key behind a feature flag and setting it off by default.
### Does this PR have any customer impact?

We had a regression in 1.24, this reverts that by putting it behind a flag and setting it off. The tests are ran using the config being set to on for quick turnaround.  We have one test with the flag set to off.

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

### 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?
Not yet

### ChangeLog (Refer [Template](../oss/CHANGELOG.md))

### Description

We had a regression in 1.24, this reverts that by putting it behind a flag and setting it off. The tests are ran using the config being set to on for quick turnaround.  We have one test with the flag set to off.

Will follow up with a proper fix and tests.

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

Putting Pushing down sort by _id to primary key behind a feature flag.

which was implemented in.
https://msdata.visualstudio.com/CosmosDB/_git/pgmongo/pullrequest/1525883

#### PR Summary
This pull request introduces a new feature flag to enable or disable pushing down sort by ID to the primary key.
- `configs/feature_flag_configs.c`: Added a new feature flag `EnableSortbyIdPushDownToPrimaryKey`.
- `bson_aggregation_pipeline.c`: Modified sort handling to respect the new feature flag.
- `postgresql.conf` files: Updated configurations to include the new feature flag.
- `utils.sh`: Added the new feature flag to the setup script.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-02-13 17:09:16 -08:00
..