Commit f485708
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-inherited
ones are available or vice versa.
Richard Guo and Justin Pryzby
Discussion: https://postgr.es/m/[email protected]1 parent 495e73c commit f485708
File tree
3 files changed
+18
-4
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3913 | 3913 | | |
3914 | 3914 | | |
3915 | 3915 | | |
3916 | | - | |
| 3916 | + | |
3917 | 3917 | | |
3918 | 3918 | | |
3919 | 3919 | | |
| |||
3933 | 3933 | | |
3934 | 3934 | | |
3935 | 3935 | | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
3936 | 3940 | | |
3937 | 3941 | | |
3938 | 3942 | | |
| |||
4004 | 4008 | | |
4005 | 4009 | | |
4006 | 4010 | | |
4007 | | - | |
4008 | 4011 | | |
4009 | 4012 | | |
4010 | 4013 | | |
| |||
5241 | 5244 | | |
5242 | 5245 | | |
5243 | 5246 | | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
5244 | 5251 | | |
5245 | 5252 | | |
5246 | 5253 | | |
| |||
| 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 | | |
| |||
| 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