forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1f1865e
committed
Fix planner failure with extended statistics on partitioned tables.
Some cases would result in "cache lookup failed for statistics object",due to trying to fetch inherited statistics when only non-inheritedones are available or vice versa.Richard Guo and Justin PryzbyDiscussion:https://postgr.es/m/20221030170520.GM16921@telsasoft.com1 parent8b0a5cf commit1f1865e
File tree
3 files changed
+18
-4
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+18
-4
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3912 | 3912 |
| |
3913 | 3913 |
| |
3914 | 3914 |
| |
3915 |
| - | |
| 3915 | + | |
3916 | 3916 |
| |
3917 | 3917 |
| |
3918 | 3918 |
| |
| |||
3932 | 3932 |
| |
3933 | 3933 |
| |
3934 | 3934 |
| |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
3935 | 3939 |
| |
3936 | 3940 |
| |
3937 | 3941 |
| |
| |||
4003 | 4007 |
| |
4004 | 4008 |
| |
4005 | 4009 |
| |
4006 |
| - | |
4007 | 4010 |
| |
4008 | 4011 |
| |
4009 | 4012 |
| |
| |||
5240 | 5243 |
| |
5241 | 5244 |
| |
5242 | 5245 |
| |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
5243 | 5250 |
| |
5244 | 5251 |
| |
5245 | 5252 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
235 |
| - | |
| 235 | + | |
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
| |||
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
249 | 255 |
| |
250 | 256 |
| |
251 | 257 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
142 |
| - | |
| 142 | + | |
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
| 146 | + | |
146 | 147 |
| |
147 | 148 |
| |
148 | 149 |
| |
|
0 commit comments
Comments
(0)