mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 19:59:54 -05:00
### 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? ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Index fix ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses an issue with index statistics in the `pg_documentdb` project. - `src/commands/create_indexes.c`: Added `UpdateIndexStatsForPostgresIndex` function to update index statistics for unique indexes and integrated it into various index creation functions. - `src/commands/create_indexes_background.c`: Updated to set statistics for unique indexes after index creation. - `src/configs/feature_flag_configs.c`: Introduced a new feature flag `disable_statistics_for_unique_columns` to control the statistics update behavior. - `include/commands/create_indexes.h`: Declared the new `UpdateIndexStatsForPostgresIndex` function. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->