Files
documentdb/pg_documentdb
Cornelius Boateng ec1c0f67c6 Merged PR 1685390: [engine] Rename EnableLetForWriteCommands GUC
### Does this PR have any customer impact? No

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

### 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, no

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

### Description

Rename `EnableLetForWriteCommands` to `EnableVariablesForWriteCommands`.
The GUC controls support for both `let` variables and $$NOW. Thus, it is more intuitive and clearer.

----
#### AI description  (iteration 1)
#### PR Classification
This pull request implements an API renaming change by updating the GUC from “enableLetForWriteCommands” to “enableVariablesForWriteCommands”.

#### PR Summary
The changes standardize the configuration naming across tests, source code, and documentation to improve clarity and consistency for write command variable handling.
- **`oss/internal/pg_documentdb_distributed` & `pgmongo` tests:** Expected output files and SQL scripts are updated to reflect the new GUC name.
- **`pg_documentdb/src/configs/feature_flag_configs.c`:** The custom bool variable and its initializer now use the new naming.
- **Core source files:** References in `commands/delete.c`, `planner/documents_planner.c`, and `query/query_operator.c` have been updated to use “enableVariablesForWriteCommands”.
- **Documentation and setup:** The `CHANGELOG.md` and `scripts/utils.sh` are revised to document and configure the renamed GUC.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
2025-05-29 12:12:31 +08:00
..