-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: add helper functions for partial indexes and scans
This commit adds helper functions to determine if indexes are partial indexes, if scans operate on partial indexes, and for retrieving partial index predicate expressions. Within the optimizer `TableMeta.PartialIndexPredicates` is now the source of truth that should be used for answering these types of questions. The catalog `Index.Predicate` function should only be used by the optbuilder. This commit also makes certain that there is an entry in the `TableMeta.PartialIndexPredicates` map for every partial index on the table, even if the partial index predicate is non-immutable. This makes the map a safe source of truth for determining which indexes are partial. Release note: None
- Loading branch information
Showing
5 changed files
with
47 additions
and
12 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