-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#25557] docdb: Fixed enabling block-based sampling flags to enable i…
…t by default Summary: ysql_sampling_algorithm auto-flag is propagated to postgres process at postgres process start but not getting updated automatically when auto-flag is promoted because this is not yet implemented. That leads to block-based sampling algorithm is not enabled by default as was expected. To solve this issue, ysql_sampling_algorithm auto-flag is replaced by pg flags which are passed to postgres via GUC: yb_allow_block_based_sampling_algorithm (auto) + yb_sampling_algorithm (runtime). Upgrade/Rollback safety: - Before release branch is cut it is safe to remove ysql_sampling_algorithm auto-flag. - In .proto file only comment has been updated. Jira: DB-14811 Test Plan: 1) PgAnalyzeTest.AnalyzeSamplingColocated test 2) Create universe and make sure block-based sampling algorithm is enabled. 3) Upgrade older (pre-GH-24112) universe and make sure block-based sampling algorithm is enabled. Reviewers: hsunder, amartsinchyk Reviewed By: hsunder Subscribers: rthallam, yql, ybase Tags: #jenkins-ready, #jenkins-trigger Differential Revision: https://phorge.dev.yugabyte.com/D41131
- Loading branch information
Showing
9 changed files
with
84 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters