-
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.
[#22937] docdb: Backward scans: make pggate be aware of fast backward…
… scan capability Summary: This is a first part of CBO-related changes for backward scans, which is not directly related to the cost calculation. But the aim of the change is to make pggate be aware of fast backward scan capability to be able to correctly identify the cost of backward scans in the CBO. Refer to #22370 for the details. For this purpose the flag is moved to common_flags.cc and YBCPgGFlagsAccessor is updated to be able to get the value of the flag. Additionally the flag is mark as `NON_RUNTIME` to prevent any confusion from a user side as PG flags does not support runtime change. Such change is acceptable as it is not expected the flag change in future. **Upgrade/Rollback safety:** In the worst case, when the node is not yet upgraded, the planner/optimizer will not be aware of the fast backward scan capability and as a result would be choosing a different execution path without fast backward scan optimization avoiding possible performance gain. On the other hand, if the planner/optimizer already aware of the capability (and it's on), but remote yb-tserver is not yet upgraded, then it may result in a slower query but with no correctness impact. Jira: DB-11853 Test Plan: Jenkins Reviewers: sergei, amartsinchyk, rthallam Reviewed By: amartsinchyk Subscribers: hsunder, ybase, yql Differential Revision: https://phorge.dev.yugabyte.com/D36245
- Loading branch information
1 parent
cc63aaf
commit 1773ae2
Showing
9 changed files
with
31 additions
and
14 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