-
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.
[#22203] YSQL: Add new flag yb_enable_bitmapscan = false
Summary: `enable_bitmapscan` does not disable bitmap scan in all cases - e.g. if sequential scan and bitmap scan are both disabled, they both have `disable_cost` added to their plan costs. Then bitmap scan might still be the lowest costed plan. Add a new flag `yb_enable_bitmapscan` that prevents YB Bitmap Scan plans from being created for YB relations. The default of this new flag is false, to prevent YB Bitmap Scans from being chosen until bitmap scans are more stable. The default of `enable_bitmapscan` is reset to true, to allow bitmap scans on PG temp tables by default again. This restores the default behaviour for temp tables. | | enable_bitmapscan = false | enable_bitmapscan = true | yb_enable_bitmapscan = false | PG bitmap scans have `disable_cost` added, YB bitmap scans disabled | PG bitmap scans enabled, YB bitmap scans disabled | yb_enable_bitmapscan = true | YB + PG bitmap scans have `disable_cost` added | YB + PG bitmap scans are enabled and costed normally Jira: DB-11125 Test Plan: ``` ./yb_build.sh --java-test 'org.yb.pgsql.TestPgRegressYbBitmapScans' ``` Reviewers: amartsinchyk, tnayak, mtakahara Reviewed By: mtakahara Subscribers: smishra, yql Differential Revision: https://phorge.dev.yugabyte.com/D34646
- Loading branch information
Showing
19 changed files
with
248 additions
and
26 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
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.