forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit05fb5d6
committed
Ignore partitioned indexes where appropriate
get_relation_info() was too optimistic about opening indexes inpartitioned tables, which would raise errors when any queries wereplanned on such tables. Fix by ignoring any indexes of the partitionedkind.CLUSTER (and ALTER TABLE CLUSTER ON) had a similar problem. Fix bydisallowing these commands in partitioned tables.Fallout from8b08f7d.1 parent5955d93 commit05fb5d6
File tree
6 files changed
+58
-0
lines changed- src
- backend
- commands
- optimizer/util
- test/regress
- expected
- sql
6 files changed
+58
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
131 | 139 |
| |
132 | 140 |
| |
133 | 141 |
| |
| |||
482 | 490 |
| |
483 | 491 |
| |
484 | 492 |
| |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
485 | 499 |
| |
486 | 500 |
| |
487 | 501 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 |
| |
211 | 221 |
| |
212 | 222 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
442 | 450 |
| |
443 | 451 |
| |
444 | 452 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
34 | 45 |
| |
35 | 46 |
| |
36 | 47 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
199 | 206 |
| |
200 | 207 |
| |
201 | 208 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 |
| |
23 | 31 |
| |
24 | 32 |
| |
|
0 commit comments
Comments
(0)