forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit168d206
committed
Provide statistics for hypothetical BRIN indexes
Trying to use hypothetical indexes with BRIN currently fails when tryingto access a relation that does not exist when looking for thestatistics. With the current API, it is not possible to easily passa value for pages_per_range down to the hypothetical index, so thismakes use of the default value of BRIN_DEFAULT_PAGES_PER_RANGE, whichshould be fine enough in most cases.Being able to refine or enforce the hypothetical costs in moreoptimistic ways would require more refactoring by filling in thestatistics when building IndexOptInfo in plancat.c. This would involveABI breakages around the costing routines, something not fit for stablebranches.This is broken since7e534ad, so backpatch down to v10.Author: Julien Rouhaud, Heikki LinnakangasReviewed-by: Álvaro Herrera, Tom Lane, Michael PaquierDiscussion:https://postgr.es/m/CAOBaU_ZH0LKEA8VFCocr6Lpte1ab0b6FpvgS0y4way+RPSXfYg@mail.gmail.comBackpatch-through: 101 parent9ff5b69 commit168d206
1 file changed
+28
-9
lines changedLines changed: 28 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
105 | 106 |
| |
106 | 107 |
| |
107 | 108 |
| |
| |||
6865 | 6866 |
| |
6866 | 6867 |
| |
6867 | 6868 |
| |
6868 |
| - | |
6869 |
| - | |
| 6869 | + | |
| 6870 | + | |
6870 | 6871 |
| |
6871 |
| - | |
6872 |
| - | |
6873 |
| - | |
| 6872 | + | |
| 6873 | + | |
| 6874 | + | |
| 6875 | + | |
| 6876 | + | |
| 6877 | + | |
| 6878 | + | |
| 6879 | + | |
| 6880 | + | |
| 6881 | + | |
| 6882 | + | |
| 6883 | + | |
| 6884 | + | |
| 6885 | + | |
| 6886 | + | |
| 6887 | + | |
| 6888 | + | |
| 6889 | + | |
| 6890 | + | |
| 6891 | + | |
| 6892 | + | |
| 6893 | + | |
| 6894 | + | |
| 6895 | + | |
| 6896 | + | |
6874 | 6897 |
| |
6875 | 6898 |
| |
6876 | 6899 |
| |
| |||
6970 | 6993 |
| |
6971 | 6994 |
| |
6972 | 6995 |
| |
6973 |
| - | |
6974 |
| - | |
6975 |
| - | |
6976 |
| - | |
6977 | 6996 |
| |
6978 | 6997 |
| |
6979 | 6998 |
| |
|
0 commit comments
Comments
(0)