forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131791: sql: simplify generic query plans r=mgartner a=mgartner #### sql: do not cache non-reusable plans Fixes cockroachdb#132963 Release note (bug fix): A bug has been fixed that caused non-reusable query plans, e.g., plans for DDL and `SHOW ...` statements, to be cached and reused in future executions, possibly causing stale results to be returned. This bug only occurred when `plan_cache_mode` was set to `auto` or `force_generic_plan`, both of which are not currently the default settings. #### sql: remove legacy planning code path An optimization code path from before the introduction of generic query plans has been removed. This code path remained in the codebase to de-risk the generic query plans backports. It is not needed in future versions. Release note: None #### sql: remove unused context parameter in `reuseMemo` Release note: None #### sql: simplify generic query plans All fully-optimized memos that can be reused without re-optimization are now stored in `PreparedStatement.GenericMemo`. Prior to this commit, some fully-optimized memos were stored in `PreparedStatement.BaseMemo`. Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
3 changed files
with
118 additions
and
136 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
Oops, something went wrong.